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

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


The following commit(s) were added to refs/heads/main by this push:
     new 35c0b7d62430 CAMEL-22948: Add @{argLine} to surefire/failsafe 
configuration (#22097)
35c0b7d62430 is described below

commit 35c0b7d6243088fa55df49fc3365cedb5cae0562
Author: Guillaume Nodet <[email protected]>
AuthorDate: Fri Mar 20 09:00:57 2026 +0100

    CAMEL-22948: Add @{argLine} to surefire/failsafe configuration (#22097)
    
    * CAMEL-22948: Add @{argLine} to surefire/failsafe configuration
    
    Append @{argLine} to all argLine configurations in the parent pom
    so that Maven extensions (like Quarkus) can inject JVM parameters
    automatically. When no extension sets argLine, it resolves to empty.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * CAMEL-22948: Define default empty argLine property for @{argLine} late 
binding
    
    When no extension sets the argLine property, @{argLine} resolves to the
    literal string which Java interprets as a response file argument, causing
    surefire fork failures.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
---
 parent/pom.xml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/parent/pom.xml b/parent/pom.xml
index 8fd34b557d74..22c5c5812251 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -34,6 +34,7 @@
 
     <properties>
         <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
+        <argLine /><!-- Empty by default, allows Quarkus/JaCoCo extensions to 
inject via @{argLine} -->
         <camel.surefire.fork.additional-vmargs /><!-- Empty by default -->
         <camel.surefire.fork.vmargs>-XX:+EnableDynamicAgentLoading 
-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError 
${camel.surefire.fork.additional-vmargs}</camel.surefire.fork.vmargs>
         <camel.surefire.forkCount>1</camel.surefire.forkCount>
@@ -4347,14 +4348,14 @@
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-surefire-plugin</artifactId>
                         <configuration>
-                            <argLine>@{camel.surefire.fork.vmargs}</argLine>
+                            <argLine>@{camel.surefire.fork.vmargs} 
@{argLine}</argLine>
                         </configuration>
                     </plugin>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-failsafe-plugin</artifactId>
                         <configuration>
-                            <argLine>@{camel.failsafe.fork.vmargs}</argLine>
+                            <argLine>@{camel.failsafe.fork.vmargs} 
@{argLine}</argLine>
                         </configuration>
                     </plugin>
                 </plugins>
@@ -4402,7 +4403,7 @@
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-surefire-plugin</artifactId>
                         <configuration>
-                            <argLine>${camel.surefire.fork.vmargs}</argLine>
+                            <argLine>${camel.surefire.fork.vmargs} 
@{argLine}</argLine>
                             <childDelegation>false</childDelegation>
                             <useFile>true</useFile>
                             <failIfNoTests>false</failIfNoTests>
@@ -4478,14 +4479,14 @@
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-surefire-plugin</artifactId>
                         <configuration>
-                            <argLine>${camel.surefire.fork.vmargs} 
${jacocoAgent}</argLine>
+                            <argLine>${camel.surefire.fork.vmargs} 
${jacocoAgent} @{argLine}</argLine>
                         </configuration>
                     </plugin>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-failsafe-plugin</artifactId>
                         <configuration>
-                            <argLine>${camel.failsafe.fork.vmargs} 
${jacocoAgent}</argLine>
+                            <argLine>${camel.failsafe.fork.vmargs} 
${jacocoAgent} @{argLine}</argLine>
                         </configuration>
                     </plugin>
                 </plugins>

Reply via email to