Hi
I want to deploy a GWT project by Maven. I went through your documentation
step by step but when I run it, it completely ignores web.xml and servlets.
I read lots of blogs and change something but still no success
the structure of my project is like this:
-src->main->java->(my client side and server side codes + gwt.xml file)
-src->main->webapp->WEB-INF->web.xml
-war->WEB-INF->web.xml
-war->(other resources like images, stylesheet and so on)
and this is my pom.xml file:
<properties>
<gwt.output.directory>${basedir}/target</gwt.output.directory>
<google.webtoolkit.home>C:/gwt-2.0.3/gwt-2.0.3</google.webtoolkit.home>
</properties>
<dependencies>
<!-- GWT deps (from central repo) -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>custom</version>
<scope>system</scope>
<systemPath>${google.webtoolkit.home}/gwt-servlet.jar</systemPath>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>custom</version>
<scope>system</scope>
<systemPath>${google.webtoolkit.home}/gwt-user.jar</systemPath>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-gwt</artifactId>
<version>7.0.0pre3</version>
</dependency>
<dependency>
<groupId>com.extjs</groupId>
<artifactId>gxt</artifactId>
<version>2.1.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.gwt.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>mergewebxml</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>/war</warSourceDirectory>
<warSourceExcludes>.gwt-tmp/**</warSourceExcludes>
</configuration>
</plugin>
<!-- tell the compiler we can use 1.5 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
the clinet classes work fine but the servlet being ignored . I dont have any
idea that what is the problem. can you please help me?