blob: 58a3feeba2a33060098209757a8322ef2133a93d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!-- $Rev$ $Date$ -->
<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>
<parent>
<groupId>org.apache.geronimo</groupId>
<artifactId>geronimo</artifactId>
<version>2.2</version>
</parent>
<groupId>org.apache.geronimo.testsuite</groupId>
<artifactId>testsuite</artifactId>
<name>Geronimo TestSuite</name>
<packaging>pom</packaging>
<description>
Geronimo integration testsuite.
</description>
<properties>
<!--
NOTE: The default assembly is jetty, so exclude any tomcat tests by
default. Profiles below will set this based on the assemblyId.
-->
<shittyTestExcludes>**/*tomcat*/pom.xml</shittyTestExcludes>
<!--
NOTE: Override the following on the cmdline to only run specific
testsuite buckets. To only run console-testsuite/advanced -
mvn -DshittyTestIncludes=console-testsuite/advanced/pom.xml
or
mvn install -Dtests=console-testsuite/advanced -Pit,all-subprojects
-->
<shittyTestIncludes>*/*/pom.xml</shittyTestIncludes>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.testsupport</groupId>
<artifactId>testsupport-selenium</artifactId>
<version>${version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.groovy.maven.support</groupId>
<artifactId>slf4j-gossip</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!--
<extensions>
<extension>
<groupId>org.apache.geronimo.testsupport</groupId>
<artifactId>testsupport-packaging</artifactId>
<version>${version}</version>
</extension>
</extensions>
-->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<resourcesDir>${project.build.outputDirectory}</resourcesDir>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>${project.basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
<webResources>
<resource>
<directory>${project.basedir}/src/main/webapp</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>${project.build.outputDirectory}</directory>
</resource>
</webResources>
</configuration>
</plugin>
<!-- turn off tests unless 'it' profile active-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.geronimo.buildsupport</groupId>
<artifactId>geronimo-maven-plugin</artifactId>
<configuration>
<reporters>
<reporter implementation="org.apache.geronimo.mavenplugins.geronimo.reporting.SurefireReporter">
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
</reporter>
</reporters>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>ianal-maven-plugin</artifactId>
<configuration>
<!-- Don't bother checking legal muck here, we never publish them. -->
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<site>
<id>website</id>
<url>scp://people.apache.org/www/people.apache.org/builds/geronimo/server/testsuite/${buildNumber}</url>
</site>
</distributionManagement>
<!--<pluginRepositories>-->
<!--<pluginRepository>-->
<!--<id>codehaus</id>-->
<!--<name>Codehaus Release Repository</name>-->
<!--<url>http://repository.codehaus.org</url>-->
<!--<layout>default</layout>-->
<!--<snapshots>-->
<!--<enabled>false</enabled>-->
<!--</snapshots>-->
<!--<releases>-->
<!--<enabled>true</enabled>-->
<!--</releases>-->
<!--</pluginRepository>-->
<!--</pluginRepositories>-->
<profiles>
<profile>
<id>it</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>shitty-maven-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<projects>
<fileset>
<directory>${project.basedir}</directory>
<includes>
<include>${shittyTestIncludes}</include>
</includes>
<excludes>
<exclude>${shittyTestExcludes}</exclude>
</excludes>
</fileset>
</projects>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
<goal>install</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<logOutput>true</logOutput>
<background>true</background>
<systemProperties>
<property>
<name>browser</name>
<value>${browser}</value>
</property>
</systemProperties>
</configuration>
</execution>
<execution>
<id>stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-server</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
NOTE: This horrible looking configuration sets up the surefire plugin to
not run tests durring the 'test' phase, but instead during the
'integration-test' phase.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
<execution>
<id>integration</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.geronimo.buildsupport</groupId>
<artifactId>geronimo-maven-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<logOutput>true</logOutput>
<background>true</background>
<verifyTimeout>300</verifyTimeout>
<refresh>true</refresh>
<optionSets>
<optionSet>
<id>default</id>
<options>
<option>-XX:MaxPermSize=160m</option>
</options>
</optionSet>
</optionSets>
</configuration>
</execution>
<execution>
<id>stop</id>
<phase>install</phase>
<goals>
<goal>stop-server</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>testsuite-with-jetty</id>
<activation>
<property>
<name>assemblyId</name>
<value>jetty</value>
</property>
</activation>
<properties>
<shittyTestExcludes>**/*tomcat*/pom.xml</shittyTestExcludes>
</properties>
</profile>
<profile>
<id>testsuite-with-tomcat</id>
<activation>
<property>
<name>assemblyId</name>
<value>tomcat</value>
</property>
</activation>
<properties>
<shittyTestExcludes>**/*jetty*/pom.xml</shittyTestExcludes>
</properties>
</profile>
<profile>
<id>headless</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>xvfb</id>
<phase>process-test-sources</phase>
<goals>
<goal>xvfb</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>firefox</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<browser>*firefox</browser>
</properties>
</profile>
<profile>
<id>iexplore</id>
<properties>
<browser>*iexplore</browser>
</properties>
</profile>
<profile>
<id>otherbrowser</id>
<properties>
<browser>${browserPath}</browser>
</properties>
</profile>
<profile>
<id>all-subprojects</id>
<!-- use for things like versions:set and perhaps release when build has to run on all projects -->
<modules>
<module>commands-testsuite</module>
<module>concurrent-testsuite</module>
<module>console-testsuite</module>
<module>corba-testsuite</module>
<module>deployment-testsuite</module>
<module>enterprise-testsuite</module>
<module>security-testsuite</module>
<module>web-testsuite</module>
<module>webservices-testsuite</module>
</modules>
</profile>
</profiles>
</project>