| <?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>1.2-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <groupId>org.apache.geronimo.testsuite</groupId> |
| <artifactId>testsuite</artifactId> |
| <name>Geronimo TestSuite</name> |
| <packaging>pom</packaging> |
| |
| <description> |
| Geronimo integration testsuite. This contains 2 profiles, default and child. |
| The default profile is used by the top level suites directly under this. The child profile is used by the test poms under the suites. |
| |
| This pom defines the basic dependencies needed by most suites. |
| |
| The start-selenium, start-server, invoke, and stop-server goals are globally configured here in the pluginManagement sections. |
| They just need to be bound in the suites where needed and appropriate. |
| |
| The test poms under the suites should have this pom as their parent and set their relativePath appropriately |
| The test poms under the suites inherit an empty 'child' profile from here. But any other build executions within the test poms should all be inside a 'child' profile. |
| </description> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.geronimo.testsupport</groupId> |
| <artifactId>testsupport-common</artifactId> |
| <scope>test</scope> |
| <version>${version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| <classifier>jdk14</classifier> |
| <version>5.1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.openqa.selenium.client-drivers</groupId> |
| <artifactId>selenium-java-client-driver</artifactId> |
| <version>0.8.1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.openqa.selenium.server</groupId> |
| <artifactId>selenium-server</artifactId> |
| <version>0.8.1</version> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| <classifier>jdk14</classifier> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.testsupport</groupId> |
| <artifactId>testsupport-common</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <modules> |
| <module>console-testsuite</module> |
| <module>deployment-testsuite</module> |
| </modules> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| |
| <plugin> |
| <groupId>org.apache.geronimo.plugins</groupId> |
| <artifactId>selenium-maven-plugin</artifactId> |
| <version>${version}</version> |
| </plugin> |
| |
| <!-- |
| NOTE: Using custom maven-surefire-plugin that supports TestNG: |
| http://testng.org/doc/maven.html |
| --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.8-SNAPSHOT</version> |
| <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> |
| <testFailureIgnore>true</testFailureIgnore> |
| <skip>false</skip> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.geronimo.genesis.plugins</groupId> |
| <artifactId>maven-maven-plugin</artifactId> |
| |
| <configuration> |
| <fileset> |
| <basedir>${pom.basedir}</basedir> |
| <includes> |
| <include>*/pom.xml</include> |
| </includes> |
| </fileset> |
| <profiles> |
| <profile>child</profile> |
| </profiles> |
| </configuration> |
| |
| |
| <executions> |
| <execution> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>invoke</goal> |
| </goals> |
| </execution> |
| |
| <execution> |
| <id>site-deploy</id> |
| <phase>site-deploy</phase> |
| <goals> |
| <goal>invoke</goal> |
| </goals> |
| <configuration> |
| <goals> |
| <goal>site-deploy</goal> |
| </goals> |
| <parameters> |
| <deployDirectory>${deployDirectory}</deployDirectory> |
| </parameters> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>clean</id> |
| <phase>clean</phase> |
| <goals> |
| <goal>invoke</goal> |
| </goals> |
| <configuration> |
| <goals> |
| <goal>clean</goal> |
| </goals> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <distributionManagement> |
| <site> |
| <id>website</id> |
| <url>file://${deployDirectory}/website</url> |
| </site> |
| </distributionManagement> |
| |
| <profiles> |
| <profile> |
| <id>default</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| |
| <plugin> |
| <groupId>org.apache.geronimo.plugins</groupId> |
| <artifactId>selenium-maven-plugin</artifactId> |
| |
| <executions> |
| <execution> |
| <id>start-server</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>start</goal> |
| </goals> |
| <configuration> |
| <logOutput>true</logOutput> |
| <background>true</background> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.geronimo.plugins</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> |
| |
| <executions> |
| <execution> |
| <id>start-server</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>start-server</goal> |
| </goals> |
| <configuration> |
| <logOutput>true</logOutput> |
| <background>true</background> |
| <!-- EXAMPLE: Use the following option to re-use a single installation of the server for all tests --> |
| <installDirectory>c:\apache</installDirectory> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>stop-server</id> |
| <phase>install</phase> |
| <goals> |
| <goal>stop-server</goal> |
| </goals> |
| </execution> |
| |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| <plugin> |
| <!-- |
| FIXME: The [site:site] plugin executes twice in each of the child. |
| --> |
| <groupId>org.apache.geronimo.plugins</groupId> |
| <artifactId>testsuite-maven-plugin</artifactId> |
| <version>${version}</version> |
| <executions> |
| <execution> |
| <id>generate-surefire-report</id> |
| <phase>site</phase> |
| <goals> |
| <goal>generate-surefire-report</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>fix-menu</id> |
| <phase>post-site</phase> |
| <goals> |
| <goal>fix-menu</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| </build> |
| </profile> |
| |
| <profile> |
| <id>child</id> |
| </profile> |
| |
| </profiles> |
| |
| <repositories> |
| <repository> |
| <id>openqa</id> |
| <name>OpenQA Repository</name> |
| <url>http://maven.openqa.org</url> |
| <layout>default</layout> |
| <snapshots> |
| <enabled>true</enabled> |
| <updatePolicy>daily</updatePolicy> |
| <checksumPolicy>ignore</checksumPolicy> |
| </snapshots> |
| <releases> |
| <enabled>true</enabled> |
| </releases> |
| </repository> |
| </repositories> |
| |
| <!-- |
| NOTE: This is the repository where maven-surefire-plugin:2.8-SNAPSHOT comes from. |
| --> |
| <pluginRepositories> |
| <pluginRepository> |
| <id>tapestry.javaforge</id> |
| <url>http://howardlewisship.com/repository</url> |
| </pluginRepository> |
| </pluginRepositories> |
| |
| </project> |