Tuesday, September 29, 2009

trouble with annotations and gwt-maven-plugin

I'm working on my first project to combine maven with Google Web Toolkit. In an attempt to use google-gin and its annotation, I ran into some compile time problems because the gwt:compile was running before javac had not compiled the annotations into .class files.

I don't have an elegant workaround just yet but running the process as a two step compile with maven after a clean works:

mvn clean compile -Dgoogle.webtoolkit.compileSkip=true

followed by:

mvn gwt:compile

No comments: