2008-07-12 01:12:59 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-09-17 18:08:01 -04:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
2008-09-17 18:08:01 -04:00
|
|
|
|
2015-04-02 00:18:55 -04:00
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
2006-10-26 01:00:09 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2008-09-17 18:08:01 -04:00
|
|
|
|
2007-01-03 08:29:04 -05:00
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.maven.its</groupId>
|
2011-07-08 16:37:00 -04:00
|
|
|
<artifactId>core-its</artifactId>
|
2007-09-23 21:31:02 -04:00
|
|
|
<version>2.1-SNAPSHOT</version>
|
2007-01-03 08:29:04 -05:00
|
|
|
</parent>
|
2008-09-17 18:08:01 -04:00
|
|
|
|
2008-09-23 11:48:07 -04:00
|
|
|
<artifactId>core-it-suite</artifactId>
|
2008-09-17 18:08:01 -04:00
|
|
|
|
2019-08-23 17:42:19 -04:00
|
|
|
<name>Maven Core ITs suite</name>
|
2011-07-11 17:42:02 -04:00
|
|
|
<description>The effective Maven Integration Tests suite.</description>
|
2008-09-17 18:08:01 -04:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
<!--
|
|
|
|
By default, the project just packages the tests in an artifact. To actually run them, activate the profile "run-its":
|
2020-11-11 13:01:39 -05:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
mvn clean test -Prun-its
|
2020-11-11 13:01:39 -05:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
This will subject the Maven version running the build to the integration tests. If you would like to test a different
|
|
|
|
Maven distribution, you can use the system property "mavenHome" to specify the path of the Maven distribution to test:
|
2020-11-11 13:01:39 -05:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
mvn clean test -Prun-its -DmavenHome=<maven-under-test>
|
2020-11-11 13:01:39 -05:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
Alternatively, you can just specify the version of a previously installed/deployed Maven distribution which will be
|
|
|
|
downloaded, unpacked and tested:
|
|
|
|
|
|
|
|
mvn clean test -Prun-its -DmavenVersion=2.2.1
|
2020-11-11 13:01:39 -05:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
It's also possible to point the ITs at an already downloaded Maven distribution:
|
2020-11-11 13:01:39 -05:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
mvn clean test -Prun-its -DmavenDistro=<path-to-bin-archive>
|
2020-11-11 13:01:39 -05:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
To run the ITs using embedded Maven 3.x, additionally activate the profile "embedded".
|
2020-11-11 13:01:39 -05:00
|
|
|
|
2017-03-25 06:26:23 -04:00
|
|
|
ITs that don't require to fork Maven can also be run from the IDE using the Maven projects from the workspace if the
|
|
|
|
Maven dependencies are added to the test class path.
|
2020-05-22 16:33:01 -04:00
|
|
|
|
2017-04-01 16:10:35 -04:00
|
|
|
If you're behind a proxy, use the system properties proxy.host, proxy.port, proxy.user, proxy.pass and
|
|
|
|
proxy.nonProxyHosts to specify the required proxy setup for the ITs. Alternatively, set the system property
|
|
|
|
maven.it.central to a URL of a local repository manager (anonymous authentication only) that proxies the
|
|
|
|
required artifacts.
|
2017-03-25 06:26:23 -04:00
|
|
|
-->
|
2009-10-09 19:24:55 -04:00
|
|
|
|
2008-12-11 14:24:23 -05:00
|
|
|
<properties>
|
2015-09-19 11:46:24 -04:00
|
|
|
<surefireMemory>-Xmx384m</surefireMemory>
|
2008-12-11 14:24:23 -05:00
|
|
|
<!-- The original Maven distribution to test. -->
|
|
|
|
<mavenHome>${maven.home}</mavenHome>
|
2020-11-11 13:01:39 -05:00
|
|
|
<!-- The (possibly instrumented copy of the) Maven distribution we actually
|
2015-04-02 00:18:55 -04:00
|
|
|
use for the tests. -->
|
2008-12-11 14:24:23 -05:00
|
|
|
<preparedMavenHome>${mavenHome}</preparedMavenHome>
|
2010-08-02 20:36:19 -04:00
|
|
|
<!-- default properties used to filter the global settings -->
|
2022-06-16 20:50:33 -04:00
|
|
|
<maven.it.central>https://repo.maven.apache.org/maven2</maven.it.central>
|
2010-08-02 20:36:19 -04:00
|
|
|
<proxy.active>false</proxy.active>
|
|
|
|
<proxy.host>localhost</proxy.host>
|
|
|
|
<proxy.port>80</proxy.port>
|
|
|
|
<proxy.type>none</proxy.type>
|
|
|
|
<proxy.user></proxy.user>
|
|
|
|
<proxy.pass></proxy.pass>
|
2017-04-01 16:10:35 -04:00
|
|
|
<proxy.nonProxyHosts>localhost</proxy.nonProxyHosts>
|
2012-11-11 00:34:57 -05:00
|
|
|
<slf4jVersion>1.6.1</slf4jVersion>
|
2015-04-02 00:18:55 -04:00
|
|
|
<jetty9Version>9.0.4.v20130625</jetty9Version>
|
2022-07-01 14:54:18 -04:00
|
|
|
|
|
|
|
<stubPluginVersion>0.1-stub-SNAPSHOT</stubPluginVersion>
|
2008-12-11 14:24:23 -05:00
|
|
|
</properties>
|
|
|
|
|
2008-09-17 18:08:01 -04:00
|
|
|
<dependencies>
|
2008-09-21 12:00:19 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
2017-12-29 04:42:01 -05:00
|
|
|
<version>4.12</version>
|
2008-09-21 12:00:19 -04:00
|
|
|
<!-- NOTE: Use compile scope for transitivity. -->
|
2015-04-02 00:18:55 -04:00
|
|
|
</dependency>
|
2020-04-14 16:03:37 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-all</artifactId>
|
|
|
|
<version>1.3</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2008-09-21 12:00:19 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
|
|
<artifactId>plexus-utils</artifactId>
|
2020-11-11 13:01:39 -05:00
|
|
|
<version>3.3.0</version>
|
2008-09-21 12:00:19 -04:00
|
|
|
<!-- NOTE: Use compile scope for transitivity. -->
|
|
|
|
</dependency>
|
2008-09-17 18:08:01 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.its</groupId>
|
2008-09-23 12:35:13 -04:00
|
|
|
<artifactId>maven-it-helper</artifactId>
|
2008-09-17 18:08:01 -04:00
|
|
|
<version>2.1-SNAPSHOT</version>
|
2020-11-11 13:01:39 -05:00
|
|
|
<!-- TODO: not transitive in tests artifact, so must be left in main
|
2015-04-02 00:18:55 -04:00
|
|
|
scope <scope>test</scope> -->
|
2008-09-17 18:08:01 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.shared</groupId>
|
|
|
|
<artifactId>maven-verifier</artifactId>
|
2020-11-11 13:01:39 -05:00
|
|
|
<!-- TODO: not transitive in tests artifact, so must be left in main
|
2015-04-02 00:18:55 -04:00
|
|
|
scope <scope>test</scope> -->
|
2008-09-17 18:08:01 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2019-08-10 17:54:48 -04:00
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-server</artifactId>
|
|
|
|
<version>${jetty9Version}</version>
|
2008-09-17 18:08:01 -04:00
|
|
|
</dependency>
|
2012-11-25 00:35:50 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.shared</groupId>
|
|
|
|
<artifactId>maven-shared-utils</artifactId>
|
2015-10-18 11:15:22 -04:00
|
|
|
<version>0.9</version>
|
2015-04-02 00:18:55 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2019-08-10 17:54:48 -04:00
|
|
|
<artifactId>jetty-util</artifactId>
|
2015-04-02 00:18:55 -04:00
|
|
|
<version>${jetty9Version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2019-08-10 17:54:48 -04:00
|
|
|
<artifactId>jetty-servlet</artifactId>
|
2015-04-02 00:18:55 -04:00
|
|
|
<version>${jetty9Version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
<version>16.0</version>
|
|
|
|
</dependency>
|
2020-11-11 13:01:39 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven-repository-metadata</artifactId>
|
|
|
|
<version>3.6.3</version>
|
|
|
|
</dependency>
|
2008-09-17 18:08:01 -04:00
|
|
|
</dependencies>
|
|
|
|
|
2006-10-26 01:00:09 -04:00
|
|
|
<build>
|
2010-08-02 20:36:19 -04:00
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources</directory>
|
|
|
|
</testResource>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources-filtered</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
2006-10-26 01:00:09 -04:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>**/IntegrationTestSuite.java</include>
|
|
|
|
</includes>
|
|
|
|
<forkMode>never</forkMode>
|
2007-09-23 21:31:02 -04:00
|
|
|
<skip>true</skip>
|
2008-07-31 11:42:31 -04:00
|
|
|
<systemProperties>
|
|
|
|
<property>
|
|
|
|
<name>maven.version</name>
|
|
|
|
<value>${maven.version}</value>
|
|
|
|
</property>
|
2008-12-11 14:24:23 -05:00
|
|
|
<property>
|
|
|
|
<name>maven.home</name>
|
|
|
|
<value>${preparedMavenHome}</value>
|
|
|
|
</property>
|
2010-08-02 20:36:19 -04:00
|
|
|
<property>
|
2010-08-03 16:35:51 -04:00
|
|
|
<name>maven.it.global-settings.dir</name>
|
|
|
|
<value>${project.build.testOutputDirectory}</value>
|
2010-08-02 20:36:19 -04:00
|
|
|
</property>
|
2008-07-31 11:42:31 -04:00
|
|
|
</systemProperties>
|
2006-10-26 01:00:09 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2007-09-23 21:31:02 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>test-jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2006-10-26 01:00:09 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2008-09-17 18:08:01 -04:00
|
|
|
|
2007-09-23 21:31:02 -04:00
|
|
|
<profiles>
|
2014-01-04 14:10:16 -05:00
|
|
|
<profile>
|
2015-04-02 00:18:55 -04:00
|
|
|
<id>parallel</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
2022-07-01 14:54:18 -04:00
|
|
|
<parallel>suitesAndClasses</parallel>
|
2015-04-02 00:18:55 -04:00
|
|
|
<threadCount>6</threadCount>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2014-01-04 14:10:16 -05:00
|
|
|
</profile>
|
2007-09-23 21:31:02 -04:00
|
|
|
<profile>
|
|
|
|
<id>run-its</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>false</skip>
|
|
|
|
</configuration>
|
2008-09-23 11:48:07 -04:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
2007-09-23 21:31:02 -04:00
|
|
|
</build>
|
2011-09-29 18:06:03 -04:00
|
|
|
<dependencies>
|
|
|
|
<!-- not really used but will force download in the local repo used -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
|
|
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
2020-11-13 17:29:19 -05:00
|
|
|
<version>3.0.0</version>
|
2011-09-29 18:06:03 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2012-11-10 23:36:28 -05:00
|
|
|
<version>${slf4jVersion}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-simple</artifactId>
|
|
|
|
<version>${slf4jVersion}</version>
|
2011-09-29 18:06:03 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2007-09-23 21:31:02 -04:00
|
|
|
</profile>
|
2009-07-22 17:37:30 -04:00
|
|
|
<profile>
|
|
|
|
<id>maven-repo-local</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>maven.repo.local</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties combine.children="append">
|
|
|
|
<property>
|
2020-11-11 13:01:39 -05:00
|
|
|
<!-- Pass this through to the tests (if set!) to have them
|
2015-04-02 00:18:55 -04:00
|
|
|
pick the right repository -->
|
2009-07-22 17:37:30 -04:00
|
|
|
<name>maven.repo.local</name>
|
|
|
|
<value>${maven.repo.local}</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2010-12-17 11:06:59 -05:00
|
|
|
<profile>
|
|
|
|
<id>maven-repo-local-layout</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>maven.repo.local.layout</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties combine.children="append">
|
|
|
|
<property>
|
2020-11-11 13:01:39 -05:00
|
|
|
<!-- Pass this through to the tests (if set!) to have them
|
2015-04-02 00:18:55 -04:00
|
|
|
pick the right repository layout -->
|
2010-12-17 11:06:59 -05:00
|
|
|
<name>maven.repo.local.layout</name>
|
|
|
|
<value>${maven.repo.local.layout}</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2015-09-19 11:46:24 -04:00
|
|
|
<profile>
|
|
|
|
<id>jdk-properties</id>
|
|
|
|
<activation>
|
|
|
|
<jdk>(,1.8)</jdk>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<surefireMemory>-Xmx384m -XX:MaxPermSize=192m</surefireMemory>
|
|
|
|
</properties>
|
2020-11-11 13:01:39 -05:00
|
|
|
</profile>
|
2010-02-14 18:44:20 -05:00
|
|
|
<profile>
|
|
|
|
<id>embedded</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
2010-08-03 16:43:23 -04:00
|
|
|
<skip>false</skip>
|
2010-02-14 18:44:20 -05:00
|
|
|
<forkMode>once</forkMode>
|
2015-04-02 00:18:55 -04:00
|
|
|
<argLine>${surefireMemory}
|
|
|
|
-Dcom.sun.management.jmxremote=true</argLine>
|
2020-11-11 13:01:39 -05:00
|
|
|
<!-- NOTE: Maven plugins have access to the system class path
|
2015-04-02 00:18:55 -04:00
|
|
|
so keep it clean -->
|
2010-08-04 17:10:25 -04:00
|
|
|
<useSystemClassLoader>false</useSystemClassLoader>
|
2010-02-14 18:44:20 -05:00
|
|
|
<systemProperties combine.children="append">
|
|
|
|
<property>
|
|
|
|
<name>verifier.forkMode</name>
|
|
|
|
<value>auto</value>
|
|
|
|
</property>
|
2010-02-15 12:15:24 -05:00
|
|
|
<property>
|
|
|
|
<name>emma.rt.control</name>
|
|
|
|
<value>false</value>
|
|
|
|
</property>
|
2010-02-14 18:44:20 -05:00
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2010-07-12 06:48:09 -04:00
|
|
|
<profile>
|
2011-10-09 12:50:22 -04:00
|
|
|
<id>maven-from-repo</id>
|
2010-07-12 06:48:09 -04:00
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>mavenVersion</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<mavenHome>${project.build.directory}/apache-maven</mavenHome>
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>false</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
2015-02-26 11:38:30 -05:00
|
|
|
<version>2.10</version>
|
2010-07-12 06:48:09 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>download-maven-distro</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>apache-maven</artifactId>
|
|
|
|
<version>${mavenVersion}</version>
|
|
|
|
<classifier>bin</classifier>
|
|
|
|
<type>zip</type>
|
|
|
|
<destFileName>maven-bin.zip</destFileName>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2020-04-17 16:57:31 -04:00
|
|
|
<version>3.0.0</version>
|
2010-07-12 06:48:09 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack-maven-distro</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2020-04-17 16:57:31 -04:00
|
|
|
<target>
|
2015-04-02 00:18:55 -04:00
|
|
|
<delete dir="${mavenHome}" />
|
|
|
|
<unzip src="${project.build.directory}/maven-bin.zip"
|
|
|
|
dest="${mavenHome}">
|
|
|
|
<globmapper from="apache-maven-${mavenVersion}/*"
|
|
|
|
to="*" handledirsep="true" />
|
2010-07-12 06:48:09 -04:00
|
|
|
</unzip>
|
2015-04-02 00:18:55 -04:00
|
|
|
<chmod dir="${mavenHome}/bin" perm="ugo+rx"
|
|
|
|
includes="mvn,mvnDebug" />
|
2020-04-17 16:57:31 -04:00
|
|
|
</target>
|
2010-07-12 06:48:09 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2011-10-09 12:50:22 -04:00
|
|
|
<profile>
|
|
|
|
<id>maven-distro</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>mavenDistro</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<mavenHome>${project.build.directory}/apache-maven</mavenHome>
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>false</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2020-04-17 16:57:31 -04:00
|
|
|
<version>3.0.0</version>
|
2011-10-09 12:50:22 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack-maven-distro</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2020-04-17 16:57:31 -04:00
|
|
|
<target>
|
2015-04-02 00:18:55 -04:00
|
|
|
<delete dir="${mavenHome}" />
|
2011-10-09 12:50:22 -04:00
|
|
|
<unzip src="${mavenDistro}" dest="${mavenHome}">
|
2015-04-02 00:18:55 -04:00
|
|
|
<regexpmapper from="^([^/]+)/(.*)$"
|
|
|
|
to="\2" handledirsep="true" />
|
2011-10-09 12:50:22 -04:00
|
|
|
</unzip>
|
2015-04-02 00:18:55 -04:00
|
|
|
<chmod dir="${mavenHome}/bin" perm="ugo+rx"
|
|
|
|
includes="mvn,mvnDebug" />
|
2020-04-17 16:57:31 -04:00
|
|
|
</target>
|
2011-10-09 12:50:22 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2008-12-11 14:24:23 -05:00
|
|
|
<profile>
|
|
|
|
<id>emma</id>
|
|
|
|
<properties>
|
|
|
|
<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>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2020-04-17 16:57:31 -04:00
|
|
|
<version>3.0.0</version>
|
2008-12-11 14:24:23 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-maven-distro</id>
|
|
|
|
<phase>process-test-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2020-04-17 16:57:31 -04:00
|
|
|
<target>
|
2015-04-02 00:18:55 -04:00
|
|
|
<delete dir="${preparedMavenHome}" />
|
2009-04-12 06:50:26 -04:00
|
|
|
<copy todir="${preparedMavenHome}" overwrite="true">
|
2015-04-02 00:18:55 -04:00
|
|
|
<fileset dir="${mavenHome}" />
|
2008-12-11 14:24:23 -05:00
|
|
|
</copy>
|
2015-04-02 00:18:55 -04:00
|
|
|
<chmod dir="${preparedMavenHome}/bin" perm="ugo+rx"
|
|
|
|
includes="mvn,mvnDebug" />
|
2020-04-17 16:57:31 -04:00
|
|
|
</target>
|
2008-12-11 14:24:23 -05:00
|
|
|
</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>
|
2009-02-25 14:46:56 -05:00
|
|
|
<version>2.1.5320</version>
|
2008-12-11 14:24:23 -05:00
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
2009-04-12 06:50:26 -04:00
|
|
|
<outputDirectory>${preparedMavenHome}/lib</outputDirectory>
|
2008-12-11 14:24:23 -05:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.sonatype.maven.plugin</groupId>
|
|
|
|
<artifactId>emma4it-maven-plugin</artifactId>
|
2009-02-25 14:46:56 -05:00
|
|
|
<version>1.2</version>
|
2008-12-11 14:24:23 -05:00
|
|
|
<configuration>
|
2009-01-04 12:45:32 -05:00
|
|
|
<jarSets>
|
|
|
|
<jarSet>
|
2009-04-12 06:50:26 -04:00
|
|
|
<directory>${preparedMavenHome}/lib</directory>
|
2009-01-04 12:45:32 -05:00
|
|
|
<includes>
|
|
|
|
<include>maven*.jar</include>
|
|
|
|
</includes>
|
|
|
|
</jarSet>
|
|
|
|
</jarSets>
|
|
|
|
<includes>
|
|
|
|
<include>org.apache.maven.*</include>
|
|
|
|
</includes>
|
2010-09-01 05:21:05 -04:00
|
|
|
<excludes>
|
|
|
|
<exclude>*.io.xpp3.*</exclude>
|
|
|
|
<exclude>*Exception</exclude>
|
|
|
|
</excludes>
|
2009-01-04 12:45:32 -05:00
|
|
|
</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>
|
2008-12-11 14:24:23 -05:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
2009-01-04 12:45:32 -05:00
|
|
|
</build>
|
2008-12-11 14:24:23 -05:00
|
|
|
</profile>
|
2010-08-02 20:36:19 -04:00
|
|
|
<profile>
|
|
|
|
<id>proxy</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>proxy.host</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<proxy.type>http</proxy.type>
|
|
|
|
<proxy.active>true</proxy.active>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
2007-09-23 21:31:02 -04:00
|
|
|
</profiles>
|
2006-10-26 01:00:09 -04:00
|
|
|
</project>
|