mirror of https://github.com/apache/maven.git
302 lines
10 KiB
XML
302 lines
10 KiB
XML
<?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.
|
|
-->
|
|
|
|
<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.maven.its</groupId>
|
|
<artifactId>core-integration-testing</artifactId>
|
|
<version>2.1-SNAPSHOT</version>
|
|
<relativePath>../core-it-support/pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>core-it-suite</artifactId>
|
|
|
|
<name>Maven Integration Tests</name>
|
|
|
|
<scm>
|
|
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/core-integration-testing/trunk/core-it-suite</connection>
|
|
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk/core-it-suite</developerConnection>
|
|
<url>http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite</url>
|
|
</scm>
|
|
|
|
<properties>
|
|
<!-- The original Maven distribution to test. -->
|
|
<mavenHome>${maven.home}</mavenHome>
|
|
<!-- The (possibly instrumented copy of the) Maven distribution we actually use for the tests. -->
|
|
<preparedMavenHome>${mavenHome}</preparedMavenHome>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>3.8.2</version>
|
|
<!-- NOTE: Use compile scope for transitivity. -->
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
<artifactId>plexus-utils</artifactId>
|
|
<version>1.1</version>
|
|
<!-- NOTE: Use compile scope for transitivity. -->
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven.its</groupId>
|
|
<artifactId>maven-it-helper</artifactId>
|
|
<version>2.1-SNAPSHOT</version>
|
|
<!-- TODO: not transitive in tests artifact, so must be left in main scope
|
|
<scope>test</scope>
|
|
-->
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven.shared</groupId>
|
|
<artifactId>maven-verifier</artifactId>
|
|
<version>1.2-SNAPSHOT</version>
|
|
<!-- TODO: not transitive in tests artifact, so must be left in main scope
|
|
<scope>test</scope>
|
|
-->
|
|
</dependency>
|
|
<!--
|
|
Should be fine to introduce this here, even if we use the embedder as it should be using an isolated classloader
|
|
Used to simplify tests that provide a test HTTP server.
|
|
-->
|
|
<dependency>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>jetty</artifactId>
|
|
<version>6.1.14</version>
|
|
<!-- TODO: not transitive in tests artifact, so must be left in main scope
|
|
<scope>test</scope>
|
|
-->
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/IntegrationTestSuite.java</include>
|
|
</includes>
|
|
<forkMode>never</forkMode>
|
|
<skip>true</skip>
|
|
<systemProperties>
|
|
<property>
|
|
<name>maven.version</name>
|
|
<value>${maven.version}</value>
|
|
</property>
|
|
<property>
|
|
<name>maven.home</name>
|
|
<value>${preparedMavenHome}</value>
|
|
</property>
|
|
</systemProperties>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>test-jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<reporting>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
<version>2.0.1</version>
|
|
<reportSets>
|
|
<reportSet>
|
|
<reports>
|
|
<report>index</report>
|
|
</reports>
|
|
</reportSet>
|
|
</reportSets>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>run-its</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>false</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>emma</id>
|
|
<properties>
|
|
<!--
|
|
NOTE: Maven 3.0-alpha-1 doesn't properly handle profiles+interpolation (MNG-3900) so we use the literal value
|
|
instead of this property below. Apparently, we can switch to using the property once the issue is fixed.
|
|
-->
|
|
<preparedMavenHome>${project.build.directory}/distro</preparedMavenHome>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>false</skip>
|
|
<testFailureIgnore>true</testFailureIgnore>
|
|
<systemProperties>
|
|
<!-- TODO: Duplicated to workaround MNG-3900, remove entire <systemProperties> section once fixed -->
|
|
<property>
|
|
<name>maven.version</name>
|
|
<value>${maven.version}</value>
|
|
</property>
|
|
<property>
|
|
<name>maven.home</name>
|
|
<value>${project.build.directory}/distro</value>
|
|
</property>
|
|
</systemProperties>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-maven-distro</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<delete dir="${project.build.directory}/distro"/>
|
|
<copy todir="${project.build.directory}/distro" overwrite="true">
|
|
<fileset dir="${mavenHome}"/>
|
|
</copy>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>inject-emma-into-core-realm</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>emma</groupId>
|
|
<artifactId>emma</artifactId>
|
|
<version>2.0.5312</version>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<outputDirectory>${project.build.directory}/distro/lib</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.sonatype.maven.plugin</groupId>
|
|
<artifactId>emma4it-maven-plugin</artifactId>
|
|
<version>1.2-SNAPSHOT</version>
|
|
<configuration>
|
|
<jarSets>
|
|
<jarSet>
|
|
<directory>${project.build.directory}/distro/lib</directory>
|
|
<includes>
|
|
<include>maven*.jar</include>
|
|
</includes>
|
|
</jarSet>
|
|
</jarSets>
|
|
<includes>
|
|
<include>org.apache.maven.*</include>
|
|
</includes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>instrument</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>instrument</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>report</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${basedir}</directory>
|
|
<includes>
|
|
<include>coverage.ec</include>
|
|
</includes>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<repositories>
|
|
<repository>
|
|
<id>sonatype.org</id>
|
|
<url>http://repository.sonatype.org/content/groups/public</url>
|
|
</repository>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>sonatype.org</id>
|
|
<url>http://repository.sonatype.org/content/groups/public</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|