Question

I want to set up a GWT Project with Maven. Now I am wondering what would be the easiest way to do so?

I stumbled over the Mojo GWT Maven plugin: http://mojo.codehaus.org/gwt-maven-plugin. But this looks rather complicated to set up.

Now my questions:

  1. Is there an easier way to set up a GWT Maven Project?
  2. Do I necessarily need another GWT Maven plugin (expect the normal Maven plugin of course)?
Was it helpful?

Solution

  1. Not really. GWT projects are inherently complicated since they're using a different compiler with different rules. Feel free to clarify with more specific questions about it.

  2. I don't know what you mean by "normal Maven plugin", but you do need gwt-maven-plugin attached to at least your final war project so that the appropriate Javascript files get generated.

OTHER TIPS

Running the sample project with the plugin you mentioned is actually quite easy if you are willing to do it from command-line only. Then you can modify it according to you. Maybe later integrate to Eclipse if you understand it more. See my post in this thread: How to deploy in a gwt-maven project

Use the archetype provided by the Maven GWT Plugin; it is better to stick with Maven than manually package the WAR file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top