tbroyer / gwt-maven-plugin

Starting fresh on building GWT projects with Maven
https://tbroyer.github.io/gwt-maven-plugin/
Apache License 2.0
167 stars 39 forks source link

Compile gwt-app to jar instead of war? #140

Closed sjardine closed 3 years ago

sjardine commented 4 years ago

It is possible for gwt-maven-plugin to compile the gwt-app packaging to a jar instead of a war?

Our current project uses the previous plugin to compile into a jar file to be included in a parent jar or war.

tbroyer commented 3 years ago

It's not possible. Would the idea be to

You can achieve it by using another packaging (e.g. jar) and reproducing the gwt-app lifecycle (https://tbroyer.github.io/gwt-maven-plugin/lifecycles.html) with the exception of the gwt:package-app.

This plugin can actually also be used the same way as Mojo's Maven plugin for GWT, only running the gwt:compile mojo (you'll have to configure the <projects> of the gwt:codeserver (or gwt:devmode) mojo(s) though, as auto-discovery is based on the gwt-app packaging)