I solved the issue.

I've to add webAppDirectory to the GWT maven plugin.
The generated files were not placed in my webapp directory. They were
created in the target directory.
The webapp only contains a few files, but not all of them.

Here's my actual working pom file:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
        <!-- POM generated by gwt-maven-plugin archetype -->
        <parent>
                <artifactId>dashboard2</artifactId>
                <groupId>com.dev</groupId>
                <version>0.0.1-SNAPSHOT</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.dev</groupId>
        <artifactId>dashboardClient</artifactId>
        <name>Dev Bauhaus Dashboard Client</name>
        <packaging>war</packaging>
        <version>0.0.1-SNAPSHOT</version>

        <properties>

                <maven.compiler.source>1.6</maven.compiler.source>
                <maven.compiler.target>1.6</maven.compiler.target>

        </properties>

        <dependencies>

                <!-- project dependencies -->
                <dependency>
                        <groupId>com.dev</groupId>
                        <artifactId>dashboardServer</artifactId>
                        <version>${project.version}</version>
                </dependency>

                <!-- Spring dependencies -->
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-webmvc</artifactId>
                </dependency>

                <!-- GWT dependencies (from central repo) -->
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-servlet</artifactId>
                        <scope>runtime</scope>
                </dependency>
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-user</artifactId>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>com.octo.gwt.test</groupId>
                        <artifactId>gwt-test-utils</artifactId>
                        <scope>test</scope>
                </dependency>

                <!-- test -->
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.7</version>
                        <scope>test</scope>
                </dependency>
        </dependencies>

        <build>
                
<outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
                <resources>
                        <resource>
                                <directory>src/main/java</directory>
                                <includes>
                                        <include>**/*.java</include>
                                        <include>**/*.gwt.xml</include>
                                </includes>
                        </resource>
                        <resource>
                                <directory>src/main/resources</directory>
                        </resource>
                </resources>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-war-plugin</artifactId>
                                <configuration>
                                        
<webappDirectory>src/main/webapp</webappDirectory>
                                        
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <configuration>
                                        
<source>${maven.compiler.source}</source>
                                        
<target>${maven.compiler.target}</target>
                                        <encoding>UTF-8</encoding>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-resources-plugin</artifactId>
                                <configuration>
                                        <encoding>UTF-8</encoding>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-assembly-plugin</artifactId>
                                <configuration>
                                        <descriptorRefs>
                                                
<descriptorRef>jar-with-dependencies</descriptorRef>
                                        </descriptorRefs>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-deploy-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>tomcat-maven-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.mortbay.jetty</groupId>
                                <artifactId>jetty-maven-plugin</artifactId>
                                <configuration>
                                        <webAppConfig>
                                                
<contextPath>/${project.name}</contextPath>
                                        </webAppConfig>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>gwt-maven-plugin</artifactId>
                                <configuration>
                                        <logLevel>INFO</logLevel>
                                        <style>PRETTY</style>
                                        <gwtVersion>2.1.0</gwtVersion>
                                        
<runTarget>com.axivion.dashboard.Application/Application.html</
runTarget>
                                        <modules>
                                                
<module>com.axivion.dashboard.Application</module>
                                        </modules>
                                        <copyWebapp>true</copyWebapp>
                                        
<webappDirectory>src/main/webapp</webappDirectory>
                                </configuration>
                                <executions>
                                        <execution>
                                                <id>gwtcompile</id>
                                                <phase>prepare-package</phase>
                                                <goals>
                                                        <goal>compile</goal>
                                                        <goal>resources</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <!-- manage dependencies -->
                        <plugin>
                                <artifactId>maven-dependency-plugin</artifactId>
                                <configuration>
                                        <includeTypes>jar</includeTypes>
                                        <stripVersion>true</stripVersion>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-invoker-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>copy-deps</id>
                                                <phase>compile</phase>
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                                <configuration>
                                                        
<projectsDirectory>.</projectsDirectory>
                                                        <pomIncludes>
                                                                
<pomInclude>pom.xml</pomInclude>
                                                        </pomIncludes>
                                                        
<streamLogs>true</streamLogs>
                                                        <goals>
                                                                
<goal>dependency:copy-dependencies</goal>
                                                        </goals>
                                                        
<encoding>UTF-8</encoding>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>

</project>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to