This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/main by this push:
     new b830879c77 fix(itests): Speed up JVM teardown by using TCP 
communication instead of stdio (#2815)
b830879c77 is described below

commit b830879c771be7ab553c11b5544fbedb3cb1ed08
Author: Holger Friedrich <[email protected]>
AuthorDate: Sun Aug 23 13:13:40 2026 +0200

    fix(itests): Speed up JVM teardown by using TCP communication instead of 
stdio (#2815)
---
 examples/karaf-itest-example/pom.xml | 3 +++
 itests/test/pom.xml                  | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/examples/karaf-itest-example/pom.xml 
b/examples/karaf-itest-example/pom.xml
index b7fd306ae0..6e0b969724 100644
--- a/examples/karaf-itest-example/pom.xml
+++ b/examples/karaf-itest-example/pom.xml
@@ -128,6 +128,9 @@
                 <configuration>
                     <forkCount>1</forkCount>
                     <reuseForks>false</reuseForks>
+                    <!-- Use SurefireForkNodeFactory to switch to TCP 
communication to JVM instead of stdin/stdout
+                         to avoid interfering with pax exam leading to 30sec 
timeouts during shutdown -->
+                    <forkNode 
implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
                     <systemPropertyVariables>
                         <my.system.property>foo</my.system.property>
                     </systemPropertyVariables>
diff --git a/itests/test/pom.xml b/itests/test/pom.xml
index 6a079fcb29..b6cf47da1a 100644
--- a/itests/test/pom.xml
+++ b/itests/test/pom.xml
@@ -304,6 +304,9 @@
                 <configuration>
                     <forkCount>1</forkCount>
                     <reuseForks>false</reuseForks>
+                    <!-- Use SurefireForkNodeFactory to switch to TCP 
communication to JVM instead of stdin/stdout
+                         to avoid interfering with pax exam leading to 30sec 
timeouts during shutdown -->
+                    <forkNode 
implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
                     <systemPropertyVariables>
                         
<org.ops4j.pax.logging.DefaultServiceLog.level>INFO</org.ops4j.pax.logging.DefaultServiceLog.level>
                         
<spring31.version>${spring31.version}</spring31.version>
@@ -369,6 +372,9 @@
                             <excludes>
                                 <exclude>MavenTest</exclude>
                             </excludes>
+                            <!-- Use SurefireForkNodeFactory to switch to TCP 
communication to JVM instead of stdin/stdout
+                                to avoid interfering with pax exam leading to 
30sec timeouts during shutdown -->
+                            <forkNode 
implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
                             <systemPropertyVariables>
                                 
<org.ops4j.pax.url.mvn.localRepository>${maven.repo.local}</org.ops4j.pax.url.mvn.localRepository>
                                 
<org.ops4j.pax.logging.DefaultServiceLog.level>INFO</org.ops4j.pax.logging.DefaultServiceLog.level>

Reply via email to