o Added profile to point ITs at already downloaded but unpacked Maven distro

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1180647 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2011-10-09 16:50:22 +00:00
parent 427d3bcbe8
commit 89523769f5
1 changed files with 49 additions and 1 deletions

View File

@ -48,6 +48,10 @@ under the License.
mvn clean test -Prun-its -DmavenVersion=2.2.1
It's also possible to point the ITs at an already downloaded Maven distribution:
mvn clean test -Prun-its -DmavenDistro=<path-to-bin-archive>
To run the ITs using embedded Maven 3.x, additionally activate the profile "embedded".
ITs that don't require to fork Maven can also be run from the IDE using the Maven projects from the workspace if the
@ -273,7 +277,7 @@ under the License.
</build>
</profile>
<profile>
<id>maven-distro</id>
<id>maven-from-repo</id>
<activation>
<property>
<name>mavenVersion</name>
@ -343,6 +347,50 @@ under the License.
</plugins>
</build>
</profile>
<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>
<version>1.6</version>
<executions>
<execution>
<id>unpack-maven-distro</id>
<phase>process-test-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<delete dir="${mavenHome}"/>
<unzip src="${mavenDistro}" dest="${mavenHome}">
<regexpmapper from="^([^/]+)/(.*)$" to="\2" handledirsep="true" />
</unzip>
<chmod dir="${mavenHome}/bin" perm="ugo+rx" includes="mvn,mvnDebug"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>emma</id>
<properties>