module needs to be recompile

27 views
Skip to first unread message

David Durham

unread,
Jul 13, 2009, 3:38:25 PM7/13/09
to codehaus-mojo-gwt-...@googlegroups.com
Hi all,

I keep getting the following error message when building 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>

David Durham

unread,
Jul 13, 2009, 3:51:04 PM7/13/09
to codehaus-mojo-gwt-...@googlegroups.com
> <warSourceExcludes>com.googlecode.gxtforms.demo.Application</warSourceExcludes>

btw, this is just something I tried .. it didn't fix it, so I removed this

David Durham

unread,
Jul 13, 2009, 6:23:02 PM7/13/09
to codehaus-mojo-gwt-...@googlegroups.com
I can actually resolve the issue by manually deleting the files
generated by the hosted mode browser in war/com..myapp

Still looking for a more automatic solution.

Thanks

Sam Brodkin

unread,
Jul 14, 2009, 3:42:38 AM7/14/09
to Codehaus Mojo gwt-maven-plugin Users
David, try adding <output> in the to gwt-maven-plugin config to match
your <warSourceDirectory>:

<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>
<output>war</output>
<runTarget>index.html</runTarget>
</configuration>
...

See the pom in my maven gwt starter app for more ideas:
http://code.google.com/p/gwt-maven2-starter-app/source/browse/web/pom.xml

Sam
Reply all
Reply to author
Forward
0 new messages