Friday, July 26, 2013

Re: Producing a JAR file out of compiled JavaScript and web resources (using Maven)



On Friday, July 26, 2013 12:34:41 PM UTC+2, Otto Chrons wrote:
Hi,

I would like to produce a JAR file instead of the regular WAR out of my GWT project. My GWT application is purely client-only as the server is implemented in Scala (using SBT instead of Maven). For this reason I would need to produce a JAR file containing all the final web resources (including the GWT compiled javascript), so that I can use it as a dependency for my server project.

Is it possible to configure the Maven WAR plugin to produce such a simplified JAR, without any of the WEB-INF stuff?

Yes, but that's a Maven-related question, not really a GWT-related one.

Depending on your constraint for consuming the artifact, you might need to simply exclude WEB-INF/ from the archetype: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#packagingExcludes

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment