I'm using the GWT-plugin for Maven to build my application. I want to
build two war-files where the only difference is that I want to use a
different web.xml.

How do I achieve that?

Here's my pom.xml:
<?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";>
        <modelVersion>4.0.0</modelVersion>

        <name>Web Application</name>
        <groupId>my.company</groupId>
        <artifactId>web</artifactId>
        <version>${web-version}</version>
        <packaging>war</packaging>

        <parent>
                <groupId>my.company</groupId>
                <artifactId>build</artifactId>
                <version>${version}</version>
                <relativePath>../build/pom.xml</relativePath>
        </parent>

        <build>
                <outputDirectory>war/WEB-INF/classes</outputDirectory>
                <plugins>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>gwt-maven-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>compile</goal>
                                                        
<!--<goal>generateAsync</goal>-->
                                                        <goal>test</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-war-plugin</artifactId>
                                <configuration>
                                        
<warSourceDirectory>war</warSourceDirectory>
                                        <webXml>war/WEB-INF/web.xml</webXml>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                <dependency>
                        <groupId>my.company</groupId>
                        <artifactId>env-configuration</artifactId>
                        <version>${env-configuration-version}</version>
                        <type>jar</type>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>my.company</groupId>
                        <artifactId>common</artifactId>
                        <version>${common-version}</version>
                        <type>jar</type>
                </dependency>
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-servlet</artifactId>
                </dependency>
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-user</artifactId>
                </dependency>
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-incubator</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.springframework.security</groupId>
                        <artifactId>spring-security-taglibs</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.springframework.security</groupId>
                        <artifactId>spring-security-config</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.springframework.security</groupId>
                        <artifactId>spring-security-web</artifactId>
                </dependency>
                <dependency>
                        <groupId>jstl</groupId>
                        <artifactId>jstl</artifactId>
                </dependency>
                <dependency>
                        <groupId>taglibs</groupId>
                        <artifactId>standard</artifactId>
                </dependency>
        </dependencies>

</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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to