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/09/21 17:47:49 UTC
(maven-ear-plugin) 02/02: Fork Maven for the integration tests
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git
commit 279c7f9355b530494043c4e83aea79971fc728ed
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Sep 21 13:58:37 2026 +0200
Fork Maven for the integration tests
Embedding Maven 4.0.0-rc-6 in the test JVM hangs (apache/maven-executor#47); the previous Verifier forked on Maven 4 as well.
---
src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java b/src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java
index d643519..f1aac05 100644
--- a/src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java
+++ b/src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java
@@ -111,8 +111,9 @@ public abstract class AbstractEarPluginIT {
arguments.add("-Dmaven.repo.local=" + localRepo);
ExecutorResult result;
+ // forked on purpose: embedding Maven 4 inside the test JVM hangs (apache/maven-executor#47)
try (ExecutorHelper executorHelper =
- ExecutorHelper.forMavenInstallation(Paths.get(mavenHome), ExecutorHelper.Mode.AUTO)) {
+ ExecutorHelper.forMavenInstallation(Paths.get(mavenHome), ExecutorHelper.Mode.FORKED)) {
ExecutorRequest request = ExecutorRequest.mavenBuilder()
.cwd(testDir.toPath())
.arguments(arguments)