Package a GWT client project, no server code.

102 views
Skip to first unread message

Mickael BARON

unread,
Aug 20, 2016, 12:22:53 PM8/20/16
to GWT Users
Hi,

With the GWT Maven plugin (https://gwt-maven-plugin.github.io/gwt-maven-plugin/), i can package my GWT application into a war file. But, if my GWT application contains only client layer (no server aspect), is there a solution to package to a classical web application (for example a zip file) ? In other words, no web.xml, no META-INF... only the generated GWT application files. I plan to use a Maven assembly to package my GWT application ?

Any idea ?

Mickael

Juan Pablo Gardella

unread,
Aug 20, 2016, 1:16:25 PM8/20/16
to GWT Users

Maybe you can achieve that by using maven-assembly-plugin


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

Ignacio Baca Moreno-Torres

unread,
Aug 20, 2016, 1:48:46 PM8/20/16
to GWT Users
You should try the new gwt-maven-plugin, it's not your solution, but it's a good idea ;). And you should known that the war is a zip, so actually your war just contains the META-INF and the GWT output folder. Take a look to this project for example (https://github.com/ibaca/rxcanvas-gwt), after a 'mvn package' you can see that the 'unzip target/*.war' creates 2 folders, the META-INF (that maybe can be descarted, but I'm don't know how to do it right now) and the rxcanvas that contains the whole web.


On Saturday, August 20, 2016 at 7:16:25 PM UTC+2, Juan Pablo Gardella wrote:

Maybe you can achieve that by using maven-assembly-plugin


El sáb., ago. 20, 2016 13:22, Mickael BARON <baron....@gmail.com> escribió:
Hi,

With the GWT Maven plugin (https://gwt-maven-plugin.github.io/gwt-maven-plugin/), i can package my GWT application into a war file. But, if my GWT application contains only client layer (no server aspect), is there a solution to package to a classical web application (for example a zip file) ? In other words, no web.xml, no META-INF... only the generated GWT application files. I plan to use a Maven assembly to package my GWT application ?

Any idea ?

Mickael

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

Mickael BARON

unread,
Aug 22, 2016, 1:10:07 PM8/22/16
to GWT Users
Thanks a lot.

I was cloning and compiling your project rxcanvas-gwt. The folder target/rxcanvas-gwt-1.0-SNAPSHOT is a runtime version of the GWT application. It's great. Thanks.

As Thomas Broyer said (https://t.co/NA8Y3izLcY) is very important to split our GWT application to have this kind of capability.

Mickael  
Reply all
Reply to author
Forward
0 new messages