You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/10/06 08:40:11 UTC
(maven) branch mng-3004-own-test-project created (now f2f25b469f)
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a change to branch mng-3004-own-test-project
in repository https://gitbox.apache.org/repos/asf/maven.git
at f2f25b469f Give the MNG-3004 IT its own test project
This branch includes the following new commits:
new f2f25b469f Give the MNG-3004 IT its own test project
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven) 01/01: Give the MNG-3004 IT its own test project
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch mng-3004-own-test-project
in repository https://gitbox.apache.org/repos/asf/maven.git
commit f2f25b469f453395ed2fcf7e23694bd4ad363265
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Tue Oct 6 08:40:00 2026 +0000
Give the MNG-3004 IT its own test project
MavenITmng3004ReactorFailureBehaviorMultithreadedTest and
MavenITmng0095ReactorFailureBehaviorTest both ran in
target/test-classes/mng-0095, which extractResources() does not copy.
Failsafe runs the IT classes in parallel forks, and each test deletes
target/ before checking target/touch.txt, so one class could delete the
file the other one checks next. MNG-3004 now uses a copy in mng-3004.
Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
...004ReactorFailureBehaviorMultithreadedTest.java | 10 +++----
.../src/test/resources/mng-3004/pom.xml | 31 ++++++++++++++++++++++
.../test/resources/mng-3004/subproject1/pom.xml | 28 +++++++++++++++++++
.../test/resources/mng-3004/subproject2/pom.xml | 17 ++++++++++++
.../test/resources/mng-3004/subproject3/pom.xml | 24 +++++++++++++++++
5 files changed, 105 insertions(+), 5 deletions(-)
diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3004ReactorFailureBehaviorMultithreadedTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3004ReactorFailureBehaviorMultithreadedTest.java
index ee7f63d91b..b4c558e41b 100644
--- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3004ReactorFailureBehaviorMultithreadedTest.java
+++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3004ReactorFailureBehaviorMultithreadedTest.java
@@ -38,7 +38,7 @@ public class MavenITmng3004ReactorFailureBehaviorMultithreadedTest extends Abstr
*/
@Test
public void testitFailFastSingleThread() throws Exception {
- Path testDir = extractResources("mng-0095");
+ Path testDir = extractResources("mng-3004");
Verifier verifier = newVerifier(testDir);
verifier.setAutoclean(false);
@@ -72,7 +72,7 @@ public void testitFailFastSingleThread() throws Exception {
*/
@Test
public void testitFailNeverSingleThread() throws Exception {
- Path testDir = extractResources("mng-0095");
+ Path testDir = extractResources("mng-3004");
Verifier verifier = newVerifier(testDir);
verifier.setAutoclean(false);
@@ -101,7 +101,7 @@ public void testitFailNeverSingleThread() throws Exception {
*/
@Test
public void testitFailAtEndSingleThread() throws Exception {
- Path testDir = extractResources("mng-0095");
+ Path testDir = extractResources("mng-3004");
Verifier verifier = newVerifier(testDir);
verifier.setAutoclean(false);
@@ -134,7 +134,7 @@ public void testitFailAtEndSingleThread() throws Exception {
*/
@Test
public void testitFailNeverTwoThreads() throws Exception {
- Path testDir = extractResources("mng-0095");
+ Path testDir = extractResources("mng-3004");
Verifier verifier = newVerifier(testDir);
verifier.setAutoclean(false);
@@ -163,7 +163,7 @@ public void testitFailNeverTwoThreads() throws Exception {
*/
@Test
public void testitFailAtEndTwoThreads() throws Exception {
- Path testDir = extractResources("mng-0095");
+ Path testDir = extractResources("mng-3004");
Verifier verifier = newVerifier(testDir);
verifier.setAutoclean(false);
diff --git a/its/core-it-suite/src/test/resources/mng-3004/pom.xml b/its/core-it-suite/src/test/resources/mng-3004/pom.xml
new file mode 100644
index 0000000000..0240a53bc6
--- /dev/null
+++ b/its/core-it-suite/src/test/resources/mng-3004/pom.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng3004</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ <packaging>pom</packaging>
+
+ <name>Maven Integration Test :: MNG-95</name>
+ <description>Test reactor failure modes fail-fast, fail-at-end and fail-never by forcing an exception in the first module and
+ checking the build output of the other modules.</description>
+
+ <modules>
+ <module>subproject1</module>
+ <module>subproject2</module>
+ <module>subproject3</module>
+ </modules>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.plugins</groupId>
+ <artifactId>maven-it-plugin-touch</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
diff --git a/its/core-it-suite/src/test/resources/mng-3004/subproject1/pom.xml b/its/core-it-suite/src/test/resources/mng-3004/subproject1/pom.xml
new file mode 100644
index 0000000000..faa33a0546
--- /dev/null
+++ b/its/core-it-suite/src/test/resources/mng-3004/subproject1/pom.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng3004</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>subproject1</artifactId>
+ <packaging>jar</packaging>
+
+ <name>Maven Integration Test :: MNG-95 : Project 1</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.plugins</groupId>
+ <artifactId>maven-it-plugin-touch</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ <configuration>
+ <fail>true</fail>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/its/core-it-suite/src/test/resources/mng-3004/subproject2/pom.xml b/its/core-it-suite/src/test/resources/mng-3004/subproject2/pom.xml
new file mode 100644
index 0000000000..3ee6ac18cd
--- /dev/null
+++ b/its/core-it-suite/src/test/resources/mng-3004/subproject2/pom.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng3004</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>subproject2</artifactId>
+ <packaging>jar</packaging>
+
+ <name>Maven Integration Test :: MNG-95 : Project 2</name>
+
+ <!-- NOTE: This project does not depend on the failing project -->
+</project>
diff --git a/its/core-it-suite/src/test/resources/mng-3004/subproject3/pom.xml b/its/core-it-suite/src/test/resources/mng-3004/subproject3/pom.xml
new file mode 100644
index 0000000000..2de8dc31b5
--- /dev/null
+++ b/its/core-it-suite/src/test/resources/mng-3004/subproject3/pom.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng3004</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>subproject3</artifactId>
+ <packaging>jar</packaging>
+
+ <name>Maven Integration Test :: MNG-95 : Project 3</name>
+
+ <!-- NOTE: This project depends on the failing project -->
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng3004</groupId>
+ <artifactId>subproject1</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+</project>