OK, I solved all my problems. I configured everything as folled:
pom.xml
------------------
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webAppSourceDirectory>
${basedir}/target/${artifactId}-${version}/
your.application.Application
</webAppSourceDirectory>
</configuration>
</plugin>
<!-- configure the GWT-Maven plugin -->
<plugin>
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-googlewebtoolkit2-plugin</artifactId>
<version>2.0-beta24</version>
<configuration>
<compileTargets>
<value>
your.application.Application
</value>
</compileTargets>
<runTarget>
${artifactId}/Application.html
</runTarget>
<logLevel>INFO</logLevel>
<style>DETAILED</style>
<noServer>true</noServer>
<port>8080</port>
<extraJvmArgs>-Xmx512m -Xms128m</extraJvmArgs>
<gwtVersion>${gwtVersion}</gwtVersion>
</configuration>
<executions>
<execution>
<goals>
<goal>gwt</goal>
<goal>compile</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>applicationContextCopy</id>
<phase>process-classes</phase>
<configuration>
<tasks>
<copy toDir="${basedir}/target/${artifactId}-${version}/
your.application.Application">
<fileset dir="${basedir}/src/main/webapp/">
<include name="**/*.xml"/>
</fileset>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
web.xml
----------------
<!-- Initialise the Spring MVC DispatcherServlet -->
<servlet>
<servlet-name>spring</servlet-name>
<servlet-
class>org.springframework.web.servlet.DispatcherServlet</servlet-
class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Map the DispatcherServlet to only intercept RPC requests -->
<servlet-mapping>
<servlet-name>spring</servlet-name>
<url-pattern>*.rpc</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>Application.html</welcome-file>
</welcome-file-list>
spring.xml
-------------------
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/your.rpc">yourController</prop>
</props>
</property>
</bean>
I used the gwt-sl library to integrate gwt in spring.
Keep the default directory structure and then execute following
commands:
mvn jetty:run
mvn gwt:gwt
I hope this will help all that are new in spring and gwt-maven. Please
post if you have questions or improvements.
Greetz
Malte