Wednesday, January 5, 2011

Getting gwt-maven-plugin 2.1.0 working with Vaadin 6.4.8

The gwt-maven-plugin 2.1.0 does not work out the box with the following archetype.

mvn archetype:generate
-DarchetypeGroupId=com.vaadin
-DarchetypeArtifactId=vaadin-archetype-clean
-DarchetypeVersion=LATEST
-DgroupId=your.company
-DartifactId=project-name
-Dversion=1.0
-Dpackaging=war


I got the following message :
[WARNING] You're project declares dependency on gwt-user 2.0.4. This plugin is designed for version 2.1.0

Simply change :

org.codehaus.mojo
gwt-maven-plugin
1.3-SNAPSHOT

....


com.google.gwt
gwt-user
2.0.4
provided

to :

org.codehaus.mojo
gwt-maven-plugin
2.1.0

....

com.google.gwt
gwt-user
2.1.0
provided