-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web fragment support #34
Comments
Ok. As workaround I use the following configuration for my project. The configuration for <packaging>gwt-lib</packaging> ... <build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-3</version>
<extensions>true</extensions>
<configuration>
<moduleName>org.jresearch.logbackui.gwt.fragment.module</moduleName>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<webappDirectory>${project.build.directory}/classes/META-INF/resources</webappDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/META-INF/gwt*/*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build> |
Your workaround would package all your sources and compiled Java classes too in the JAR, so I'd have rather compiled to some directory separate from <plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-3</version>
<extensions>true</extensions>
<configuration>
<moduleName>org.jresearch.logbackui.gwt.fragment.module</moduleName>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<webappDirectory>${project.build.directory}/${project.build.finalName}/META-INF/resources</webappDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<classesDirectory>${project.build.directory}/${project.build.finalName}</classesDirectory>
</configuration>
</plugin> You should be able to move the <systemProperties>
<gwt.persistentunitcachedir>${project.build.directory}/gwt/unitCache/</gwt.persistentunitcachedir>
</systemProperties> No idea where the An alternative is to use a distinct Maven module that would depend on the Anyway, that's an interesting proposal, and maybe the |
I think using an additional module to turn the |
Now you support two packaging type - the lib and app. I need to deploy the app as a web fragment. The result should be in JAR, but I need to compile my application. The compilation result should be located in the META-INF/resources/ of the result JAR.
The text was updated successfully, but these errors were encountered: