mirror of https://github.com/apache/maven.git
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:
parent
427d3bcbe8
commit
89523769f5
|
@ -48,6 +48,10 @@ under the License.
|
||||||
|
|
||||||
mvn clean test -Prun-its -DmavenVersion=2.2.1
|
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".
|
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
|
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>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>maven-distro</id>
|
<id>maven-from-repo</id>
|
||||||
<activation>
|
<activation>
|
||||||
<property>
|
<property>
|
||||||
<name>mavenVersion</name>
|
<name>mavenVersion</name>
|
||||||
|
@ -343,6 +347,50 @@ under the License.
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</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>
|
<profile>
|
||||||
<id>emma</id>
|
<id>emma</id>
|
||||||
<properties>
|
<properties>
|
||||||
|
|
Loading…
Reference in New Issue