<?xml version="1.0" encoding="UTF-8"?><project>
  <parent>
    <artifactId>appfuse</artifactId>
    <groupId>org.appfuse</groupId>
    <version>2.0-m2</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>appfuse-struts</artifactId>
  <packaging>war</packaging>
  <name>AppFuse Struts 2 Module</name>
  <version>2.0-m2</version>
  <description>Struts 2 Module for AppFuse: includes Struts 2 and Display Tag. Include this module in your
        dependencies if you want to use Struts 2 as your web framework.</description>
  <scm>
    <connection>scm:svn:https://appfuse.dev.java.net/svn/appfuse/trunk/web/struts</connection>
    <developerConnection>scm:svn:https://appfuse.dev.java.net/svn/appfuse/trunk/web/struts</developerConnection>
    <url>https://appfuse.dev.java.net/source/browse/appfuse/trunk/web/struts</url>
  </scm>
  <build>
    <defaultGoal>install</defaultGoal>
    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
      </testResource>
      <testResource>
        <directory>src/main/webapp</directory>
        <includes>
          <include>**/*.xml</include>
        </includes>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>dbunit-maven-plugin</artifactId>
        <version>1.0-beta-1-SNAPSHOT</version>
        <executions>
          <execution>
            <id>test-compile</id>
            <phase>test-compile</phase>
            <goals>
              <goal>operation</goal>
            </goals>
          </execution>
          <execution>
            <id>test</id>
            <phase>test</phase>
            <goals>
              <goal>operation</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>${jdbc.groupId}</groupId>
            <artifactId>${jdbc.artifactId}</artifactId>
            <version>${jdbc.version}</version>
          </dependency>
        </dependencies>
        <configuration>
          <driver>${jdbc.driverClassName}</driver>
          <username>${jdbc.username}</username>
          <password>${jdbc.password}</password>
          <url>${jdbc.url}</url>
          <src>src/test/resources/sample-data.xml</src>
          <type>CLEAN_INSERT</type>
          <skip>${maven.test.skip}</skip>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>integration-test</phase>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>com.canoo</groupId>
            <artifactId>webtest</artifactId>
            <version>${webtest.version}</version>
            <exclusions>
              <exclusion>
                <artifactId>jsr173</artifactId>
                <groupId>javax.xml</groupId>
              </exclusion>
            </exclusions>
          </dependency>
          <dependency>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
            <version>${javamail.version}</version>
          </dependency>
          <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>${log4j.version}</version>
          </dependency>
          <dependency>
            <groupId>oro</groupId>
            <artifactId>oro</artifactId>
            <version>${oro.version}</version>
          </dependency>
        </dependencies>
        <configuration>
          <tasks>
            <taskdef resource="webtest_base_relaxed.taskdef">
              <classpath refid="maven.test.classpath"></classpath>
            </taskdef>
            <mkdir dir="target/webtest-data"></mkdir>
            <delete file="target/webtest-data/web-tests-result.xml"></delete>
            <property value="run-all-tests" name="test"></property>
            <echo level="info">Testing '${project.build.finalName}' with locale '${user.language}'</echo>
            <ant target="${test}" antfile="src/test/resources/web-tests.xml">
              <property value="${user.language}" name="user.language"></property>
              <property value="${project.build.finalName}" name="webapp.name"></property>
              <property value="${cargo.host}" name="host"></property>
              <property value="${cargo.port}" name="port"></property>
            </ant>
          </tasks>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.appfuse</groupId>
        <artifactId>maven-warpath-plugin</artifactId>
        <version>1.0-m2</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <goals>
              <goal>add-classes</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <executions>
          <execution>
            <id>skinny-war</id>
            <phase>post-integration-test</phase>
            <goals>
              <goal>war</goal>
            </goals>
            <inherited>false</inherited>
            <configuration>
              <warSourceExcludes>WEB-INF/lib/**</warSourceExcludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>tomcat5x</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <executions>
              <execution>
                <id>start-container</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start</goal>
                </goals>
              </execution>
              <execution>
                <id>stop-container</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>stop</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <wait>${cargo.wait}</wait>
              <container>
                <containerId>tomcat5x</containerId>
                <zipUrlInstaller>
                  <url>http://apache.org/dist/tomcat/tomcat-5/v5.5.17/bin/apache-tomcat-5.5.17.zip</url>
                  <installDir>${installDir}</installDir>
                </zipUrlInstaller>
              </container>
              <configuration>
                <home>${project.build.directory}/tomcat5x/container</home>
                <properties>
                  <cargo.hostname>${cargo.host}</cargo.hostname>
                  <cargo.servlet.port>${cargo.port}</cargo.servlet.port>
                </properties>
              </configuration>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>jetty</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <executions>
              <execution>
                <id>start-container</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start</goal>
                </goals>
              </execution>
              <execution>
                <id>stop-container</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>stop</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <wait>false</wait>
              <container>
                <containerId>jetty6x</containerId>
                <type>embedded</type>
              </container>
              <configuration>
                <properties>
                  <cargo.hostname>${cargo.host}</cargo.hostname>
                  <cargo.servlet.port>${cargo.port}</cargo.servlet.port>
                </properties>
              </configuration>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>maven-snapshots</id>
      <url>http://people.apache.org/maven-snapshot-repository</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>${pom.groupId}</groupId>
      <artifactId>appfuse-web-common</artifactId>
      <version>2.0-m2</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>${pom.groupId}</groupId>
      <artifactId>appfuse-web-common</artifactId>
      <version>2.0-m2</version>
      <type>warpath</type>
    </dependency>
    <dependency>
      <groupId>org.apache.struts</groupId>
      <artifactId>struts2-core</artifactId>
      <version>${struts.version}</version>
    </dependency>
    <dependency>
      <groupId>displaytag</groupId>
      <artifactId>displaytag</artifactId>
      <version>${displaytag.version}</version>
    </dependency>
    <dependency>
      <groupId>org.subethamail</groupId>
      <artifactId>subethasmtp-wiser</artifactId>
      <version>${wiser.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jsp-api</artifactId>
      <version>${jsp.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>${servlet.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>${jdbc.groupId}</groupId>
      <artifactId>${jdbc.artifactId}</artifactId>
      <version>${jdbc.version}</version>
    </dependency>
  </dependencies>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
</project>