I managed to get a POM file that adapts Maven to the GWT directory
structure while also playing nicely with the gwt-maven-plugin.
The relevant bits are as follows:
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<outputDirectory>war/WEB-INF/classes</outputDirectory>
<resources>
<resource>
<directory>${project.build.sourceDirectory}</directory>
<targetPath></targetPath>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>${basedir}/war</warSourceDirectory>
<!--
We don't need to include any sources to copy to the
target,
because the target *is* our source.
-->
<warSourceIncludes></warSourceIncludes>
<warSourceExcludes>**</warSourceExcludes>
<webappDirectory>${basedir}/war</webappDirectory>
<webXml>${basedir}/war/WEB-INF/web.xml</webXml>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.1-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<!--
<goal>generateAsync</goal>
-->
</goals>
</execution>
</executions>
<configuration>
<runTarget>path.to.your.Module/../Module.html</runTarget>
<output>${basedir}/war</output>
<webXml>${basedir}/war/WEB-INF/web.xml</webXml>
<hostedWebapp>${basedir}/war</hostedWebapp>
</configuration>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>Codehaus</id>
<url>
http://snapshots.repository.codehaus.org</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<!--
These are properties that can be referred to in other Maven
POMs. They're
probably not all that interesting to someone new to Maven.
-->
<properties>
<gwt.version>1.6.4</gwt.version>
</properties>
I hope this helps folks.
Best,
Laird