mirror of https://github.com/apache/maven.git
IT: Streamline ITs more (#1952)
Changes: * remove unneeded POM cruft * remove embedded profile (is default) introduce forked profile * CI: drop "embedded" profile use
This commit is contained in:
parent
789e2de812
commit
01e47259d2
|
@ -202,7 +202,7 @@ jobs:
|
|||
# Now run tests and ITs using a separate local repo (using the previous filled repo as tail)
|
||||
- name: Run integration tests
|
||||
shell: bash
|
||||
run: mvn install -e -B -V -Prun-its,embedded -Dmaven.repo.local=$HOME/.m2/repository/local -Dmaven.repo.local.tail=$HOME/.m2/repository/cached
|
||||
run: mvn install -e -B -V -Prun-its -Dmaven.repo.local=$HOME/.m2/repository/local -Dmaven.repo.local.tail=$HOME/.m2/repository/cached
|
||||
|
||||
- name: Upload test artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
@ -50,7 +50,7 @@ under the License.
|
|||
|
||||
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 all the ITs using forked Maven, additionally activate the profile "forked".
|
||||
|
||||
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.
|
||||
|
@ -62,7 +62,6 @@ under the License.
|
|||
-->
|
||||
|
||||
<properties>
|
||||
<surefireMemory>-Xmx384m</surefireMemory>
|
||||
<!-- The original Maven distribution to test. -->
|
||||
<mavenHome>${maven.home}</mavenHome>
|
||||
<!-- The (possibly instrumented copy of the) Maven distribution we actually
|
||||
|
@ -512,9 +511,11 @@ under the License.
|
|||
</includes>
|
||||
<!-- test annotated by @Tag("disabled") will be skipped from executions -->
|
||||
<excludedGroups>disabled</excludedGroups>
|
||||
<forkCount>0</forkCount>
|
||||
<reuseForks>true</reuseForks>
|
||||
<skip>true</skip>
|
||||
<forkCount>1</forkCount>
|
||||
<reuseForks>true</reuseForks>
|
||||
<!-- NOTE: Maven plugins have access to the system class path, keep it clean -->
|
||||
<useSystemClassLoader>false</useSystemClassLoader>
|
||||
<promoteUserPropertiesToSystemProperties>false</promoteUserPropertiesToSystemProperties>
|
||||
<systemPropertyVariables>
|
||||
<maven.test.tmpdir>${project.build.testOutputDirectory}</maven.test.tmpdir>
|
||||
|
@ -639,31 +640,15 @@ under the License.
|
|||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>jdk-properties</id>
|
||||
<activation>
|
||||
<jdk>(,1.8)</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<surefireMemory>-Xmx384m -XX:MaxPermSize=192m</surefireMemory>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>embedded</id>
|
||||
<id>forked</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>false</skip>
|
||||
<forkCount>1</forkCount>
|
||||
<reuseForks>true</reuseForks>
|
||||
<argLine>${surefireMemory}
|
||||
-Dcom.sun.management.jmxremote=true</argLine>
|
||||
<!-- NOTE: Maven plugins have access to the system class path
|
||||
so keep it clean -->
|
||||
<useSystemClassLoader>false</useSystemClassLoader>
|
||||
<systemPropertyVariables>
|
||||
<verifier.forkMode>auto</verifier.forkMode>
|
||||
<verifier.forkMode>forked</verifier.forkMode>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -34,8 +34,7 @@ under the License.
|
|||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-executor</artifactId>
|
||||
<!-- TODO: hack -->
|
||||
<version>4.0.0-rc-2-SNAPSHOT</version>
|
||||
<version>${maven-version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- needed for VersionRange and Version -->
|
||||
|
|
28
pom.xml
28
pom.xml
|
@ -1008,39 +1008,11 @@ under the License.</licenseText>
|
|||
</plugins>
|
||||
</reporting>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>maven-repo-local</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>maven.repo.local</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<systemPropertyVariables combine.children="append">
|
||||
<property>
|
||||
<!-- Pass this through to the tests (if set!) to have them pick the right repository -->
|
||||
<name>maven.repo.local</name>
|
||||
<value>${maven.repo.local}</value>
|
||||
</property>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>run-its</id>
|
||||
<modules>
|
||||
<module>its</module>
|
||||
</modules>
|
||||
<properties>
|
||||
<mavenDistro>${session.rootDirectory}/apache-maven/target/apache-maven-${project.version}-bin.zip</mavenDistro>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue