I keep getting the following error message when building a war (mvn
package) for 1.6.4.
Anyone know how to fix it?
GWT module 'com.googlecode.gxtforms.demo.Application' needs to be
(re)compiled, please run a compile or use the Compile/Browse button in
hosted mode
Here's my build:
<build>
<outputDirectory>war/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<gwtVersion>${gwtVersion}</gwtVersion>
<module>com.googlecode.gxtforms.demo.Application</module>
<runTarget>index.html</runTarget>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warSourceDirectory>war</warSourceDirectory>
<warSourceExcludes>com.googlecode.gxtforms.demo.Application</warSourceExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
I have a slightly better solution. I just delete the contents of
war/com..myapp/ and then run mvn package. Think it has something to
do with artifacts from the hosted mode browser making it into the war.
-Dave