You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2023/07/05 16:58:44 UTC
[camel] branch main updated: Prefer using camel.surefire.* properties where possible, remove superfluous surefire configuration, e.g. it is default or inherited anyway
This is an automated email from the ASF dual-hosted git repository.
ppalaga 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 3e903408075 Prefer using camel.surefire.* properties where possible, remove superfluous surefire configuration, e.g. it is default or inherited anyway
3e903408075 is described below
commit 3e90340807532bedb972a89de7f3c93a12ac0294
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Wed Jul 5 12:14:20 2023 +0200
Prefer using camel.surefire.* properties where possible, remove
superfluous surefire configuration, e.g. it is default or inherited
anyway
---
components/camel-asterisk/pom.xml | 25 +------------
.../camel-aws/camel-aws-secrets-manager/pom.xml | 23 +-----------
components/camel-aws/camel-aws2-kms/pom.xml | 23 +-----------
components/camel-aws/camel-aws2-lambda/pom.xml | 23 +-----------
components/camel-aws/camel-aws2-sns/pom.xml | 23 +-----------
components/camel-box/camel-box-component/pom.xml | 25 ++-----------
components/camel-cxf/camel-cxf-common/pom.xml | 23 ------------
components/camel-cxf/camel-cxf-rest/pom.xml | 29 ++-------------
components/camel-cxf/camel-cxf-soap/pom.xml | 29 ++-------------
.../camel-cxf/camel-cxf-spring-common/pom.xml | 42 ----------------------
components/camel-cxf/camel-cxf-spring-rest/pom.xml | 29 ++-------------
components/camel-cxf/camel-cxf-spring-soap/pom.xml | 29 ++-------------
components/camel-elasticsearch/pom.xml | 4 +--
components/camel-facebook/pom.xml | 26 +-------------
components/camel-flink/pom.xml | 22 +-----------
.../camel-google/camel-google-functions/pom.xml | 26 +-------------
.../camel-google-secret-manager/pom.xml | 26 +-------------
.../camel-google/camel-google-sheets/pom.xml | 12 ++-----
.../camel-google/camel-google-storage/pom.xml | 28 ++-------------
components/camel-hazelcast/pom.xml | 5 +--
components/camel-ignite/pom.xml | 22 +-----------
components/camel-jcr/pom.xml | 23 +-----------
components/camel-jgroups-raft/pom.xml | 2 +-
components/camel-jgroups/pom.xml | 2 +-
components/camel-jms/pom.xml | 9 +----
components/camel-jpa/pom.xml | 11 ++----
components/camel-kudu/pom.xml | 22 ++----------
components/camel-leveldb/pom.xml | 19 ----------
components/camel-mail/pom.xml | 24 +------------
components/camel-master/pom.xml | 25 -------------
components/camel-mina/pom.xml | 2 +-
components/camel-mllp/pom.xml | 25 -------------
components/camel-observation/pom.xml | 8 +----
components/camel-opensearch/pom.xml | 4 +--
components/camel-opentelemetry/pom.xml | 8 +----
components/camel-printer/pom.xml | 19 +---------
components/camel-pulsar/pom.xml | 14 +-------
components/camel-robotframework/pom.xml | 24 ++-----------
components/camel-rocketmq/pom.xml | 25 +++----------
components/camel-rxjava/pom.xml | 26 ++------------
.../camel-salesforce-component/pom.xml | 9 -----
components/camel-sap-netweaver/pom.xml | 11 +-----
components/camel-service/pom.xml | 25 -------------
components/camel-servlet/pom.xml | 20 +----------
components/camel-sjms/pom.xml | 22 +-----------
components/camel-sjms2/pom.xml | 22 +-----------
components/camel-soap/pom.xml | 22 +-----------
components/camel-undertow/pom.xml | 23 +-----------
components/camel-xmpp/pom.xml | 1 -
components/camel-zookeeper-master/pom.xml | 6 ----
components/camel-zookeeper/pom.xml | 8 +----
core/camel-core/pom.xml | 2 +-
core/camel-main/pom.xml | 22 +-----------
core/camel-management/pom.xml | 17 +--------
dsl/camel-kotlin-dsl/pom.xml | 25 ++-----------
parent/pom.xml | 3 +-
pom.xml | 6 ++++
tests/test-bundles/pom.xml | 2 +-
.../pom.xml | 27 +++-----------
59 files changed, 80 insertions(+), 979 deletions(-)
diff --git a/components/camel-asterisk/pom.xml b/components/camel-asterisk/pom.xml
index d5c09d80ca0..ee768669dd9 100644
--- a/components/camel-asterisk/pom.xml
+++ b/components/camel-asterisk/pom.xml
@@ -32,6 +32,7 @@
<description>Camel Asterisk to interact with an Asterisk PBX Server</description>
<properties>
+ <camel.surefire.reuseForks>false</camel.surefire.reuseForks>
</properties>
<dependencies>
@@ -64,28 +65,4 @@
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkCount>1</forkCount>
- <reuseForks>false</reuseForks>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-aws/camel-aws-secrets-manager/pom.xml b/components/camel-aws/camel-aws-secrets-manager/pom.xml
index c94b608a546..d6bf20e9776 100644
--- a/components/camel-aws/camel-aws-secrets-manager/pom.xml
+++ b/components/camel-aws/camel-aws-secrets-manager/pom.xml
@@ -34,6 +34,7 @@
<properties>
<camel.surefire.forkTimeout>1200</camel.surefire.forkTimeout>
+ <camel.surefire.fork.additional-vmargs>-Xmx2G</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -85,26 +86,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-aws/camel-aws2-kms/pom.xml b/components/camel-aws/camel-aws2-kms/pom.xml
index dc351d12185..f1066948997 100644
--- a/components/camel-aws/camel-aws2-kms/pom.xml
+++ b/components/camel-aws/camel-aws2-kms/pom.xml
@@ -34,6 +34,7 @@
<properties>
<camel.surefire.forkTimeout>1200</camel.surefire.forkTimeout>
+ <camel.surefire.fork.additional-vmargs>-Xmx2G</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -73,26 +74,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-aws/camel-aws2-lambda/pom.xml b/components/camel-aws/camel-aws2-lambda/pom.xml
index 55761f8ea0f..e32c97eb50b 100644
--- a/components/camel-aws/camel-aws2-lambda/pom.xml
+++ b/components/camel-aws/camel-aws2-lambda/pom.xml
@@ -34,6 +34,7 @@
<properties>
<camel.surefire.forkTimeout>1200</camel.surefire.forkTimeout>
+ <camel.surefire.fork.additional-vmargs>-Xmx2G</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -72,26 +73,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-aws/camel-aws2-sns/pom.xml b/components/camel-aws/camel-aws2-sns/pom.xml
index b10b6ae95fb..7672a060361 100644
--- a/components/camel-aws/camel-aws2-sns/pom.xml
+++ b/components/camel-aws/camel-aws2-sns/pom.xml
@@ -34,6 +34,7 @@
<properties>
<camel.surefire.forkTimeout>1200</camel.surefire.forkTimeout>
+ <camel.surefire.fork.additional-vmargs>-Xmx2G</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -100,26 +101,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-box/camel-box-component/pom.xml b/components/camel-box/camel-box-component/pom.xml
index 74f95a72629..c85483dd086 100644
--- a/components/camel-box/camel-box-component/pom.xml
+++ b/components/camel-box/camel-box-component/pom.xml
@@ -39,6 +39,8 @@
<outPackage>org.apache.camel.component.box.internal</outPackage>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+
+ <camel.surefire.fork.vmargs>-Xshare:off</camel.surefire.fork.vmargs>
</properties>
<dependencies>
@@ -581,27 +583,4 @@
</pluginManagement>
</build>
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <!-- Avoid 'bootstrap classpath has been appended' error message caused by mockito-inline -->
- <argLine>-Xshare:off</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
diff --git a/components/camel-cxf/camel-cxf-common/pom.xml b/components/camel-cxf/camel-cxf-common/pom.xml
index 3a5b8f8d645..f80421b2351 100644
--- a/components/camel-cxf/camel-cxf-common/pom.xml
+++ b/components/camel-cxf/camel-cxf-common/pom.xml
@@ -135,28 +135,5 @@
</dependency>
</dependencies>
</profile>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- <reportFormat>brief</reportFormat>
- <useFile>false</useFile>
- <runOrder>alphabetical</runOrder>
- <argLine>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
diff --git a/components/camel-cxf/camel-cxf-rest/pom.xml b/components/camel-cxf/camel-cxf-rest/pom.xml
index 9a8e08640a7..2675d01bf18 100644
--- a/components/camel-cxf/camel-cxf-rest/pom.xml
+++ b/components/camel-cxf/camel-cxf-rest/pom.xml
@@ -33,6 +33,8 @@
<description>Camel CXF REST support</description>
<properties>
+ <camel.surefire.fork.vmargs>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</camel.surefire.fork.vmargs>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -253,32 +255,5 @@
</dependency>
</dependencies>
</profile>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- <reportFormat>brief</reportFormat>
- <useFile>false</useFile>
- <runOrder>alphabetical</runOrder>
- <!--parallel>classes</parallel>
- <perCoreThreadCount>true</perCoreThreadCount>
- <threadCount>2</threadCount-->
- <argLine>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
diff --git a/components/camel-cxf/camel-cxf-soap/pom.xml b/components/camel-cxf/camel-cxf-soap/pom.xml
index 25626085945..bb2478fe2ad 100644
--- a/components/camel-cxf/camel-cxf-soap/pom.xml
+++ b/components/camel-cxf/camel-cxf-soap/pom.xml
@@ -33,7 +33,8 @@
<description>Camel CXF SOAP support</description>
<properties>
-
+ <camel.surefire.fork.vmargs>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</camel.surefire.fork.vmargs>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -342,31 +343,5 @@
</dependency>
</dependencies>
</profile>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- <reportFormat>brief</reportFormat>
- <useFile>false</useFile>
- <runOrder>alphabetical</runOrder>
- <!--parallel>classes</parallel>
- <perCoreThreadCount>true</perCoreThreadCount>
- <threadCount>2</threadCount-->
- <argLine>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
diff --git a/components/camel-cxf/camel-cxf-spring-common/pom.xml b/components/camel-cxf/camel-cxf-spring-common/pom.xml
index ff161298199..7270ab3cd3f 100644
--- a/components/camel-cxf/camel-cxf-spring-common/pom.xml
+++ b/components/camel-cxf/camel-cxf-spring-common/pom.xml
@@ -118,47 +118,5 @@
</dependency>
</dependencies>
</profile>
- <profile>
- <id>jdk17-build</id>
- <activation>
- <jdk>[17,)</jdk>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- <reportFormat>brief</reportFormat>
- <useFile>false</useFile>
- <runOrder>alphabetical</runOrder>
- <!--parallel>classes</parallel>
- <perCoreThreadCount>true</perCoreThreadCount>
- <threadCount>2</threadCount-->
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
diff --git a/components/camel-cxf/camel-cxf-spring-rest/pom.xml b/components/camel-cxf/camel-cxf-spring-rest/pom.xml
index aa3ba6508d7..4faac5ee1f5 100644
--- a/components/camel-cxf/camel-cxf-spring-rest/pom.xml
+++ b/components/camel-cxf/camel-cxf-spring-rest/pom.xml
@@ -34,7 +34,8 @@
<properties>
<firstVersion>3.18.0</firstVersion>
-
+ <camel.surefire.fork.vmargs>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</camel.surefire.fork.vmargs>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -330,31 +331,5 @@
</dependency>
</dependencies>
</profile>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- <reportFormat>brief</reportFormat>
- <useFile>false</useFile>
- <runOrder>alphabetical</runOrder>
- <!--parallel>classes</parallel>
- <perCoreThreadCount>true</perCoreThreadCount>
- <threadCount>2</threadCount-->
- <argLine>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
diff --git a/components/camel-cxf/camel-cxf-spring-soap/pom.xml b/components/camel-cxf/camel-cxf-spring-soap/pom.xml
index 45769b8c9be..175aa685769 100644
--- a/components/camel-cxf/camel-cxf-spring-soap/pom.xml
+++ b/components/camel-cxf/camel-cxf-spring-soap/pom.xml
@@ -34,7 +34,8 @@
<properties>
<firstVersion>3.18.0</firstVersion>
-
+ <camel.surefire.fork.vmargs>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</camel.surefire.fork.vmargs>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -402,31 +403,5 @@
</dependency>
</dependencies>
</profile>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- <reportFormat>brief</reportFormat>
- <useFile>false</useFile>
- <runOrder>alphabetical</runOrder>
- <!--parallel>classes</parallel>
- <perCoreThreadCount>true</perCoreThreadCount>
- <threadCount>2</threadCount-->
- <argLine>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
diff --git a/components/camel-elasticsearch/pom.xml b/components/camel-elasticsearch/pom.xml
index bd923964fad..79c17a5caf9 100644
--- a/components/camel-elasticsearch/pom.xml
+++ b/components/camel-elasticsearch/pom.xml
@@ -36,6 +36,8 @@
<!-- Elasticsearch container is not available on these platforms -->
<skipITs.ppc64le>true</skipITs.ppc64le>
<skipITs.s390x>true</skipITs.s390x>
+
+ <camel.surefire.reuseForks>false</camel.surefire.reuseForks>
</properties>
<dependencies>
@@ -105,8 +107,6 @@
<systemPropertyVariables>
<es.path.data>target/data</es.path.data>
</systemPropertyVariables>
- <forkCount>1</forkCount>
- <reuseForks>false</reuseForks>
</configuration>
</plugin>
</plugins>
diff --git a/components/camel-facebook/pom.xml b/components/camel-facebook/pom.xml
index df54cfd9e2d..db7ee414394 100644
--- a/components/camel-facebook/pom.xml
+++ b/components/camel-facebook/pom.xml
@@ -32,6 +32,7 @@
<description>Camel Facebook Support</description>
<properties>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -57,29 +58,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-flink/pom.xml b/components/camel-flink/pom.xml
index f0d88c9f1e2..e64d2f35a47 100644
--- a/components/camel-flink/pom.xml
+++ b/components/camel-flink/pom.xml
@@ -33,6 +33,7 @@
<description>Camel Flink support</description>
<properties>
+ <camel.surefire.fork.vmargs>--add-opens java.base/java.lang=ALL-UNNAMED</camel.surefire.fork.vmargs>
</properties>
<dependencies>
@@ -103,25 +104,4 @@
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
diff --git a/components/camel-google/camel-google-functions/pom.xml b/components/camel-google/camel-google-functions/pom.xml
index 28b9ba11247..32addc30dbb 100644
--- a/components/camel-google/camel-google-functions/pom.xml
+++ b/components/camel-google/camel-google-functions/pom.xml
@@ -34,6 +34,7 @@
<properties>
<firstVersion>3.9.0</firstVersion>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencyManagement>
@@ -108,29 +109,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-google/camel-google-secret-manager/pom.xml b/components/camel-google/camel-google-secret-manager/pom.xml
index 4916f16a8ab..7e6ecc6eee3 100644
--- a/components/camel-google/camel-google-secret-manager/pom.xml
+++ b/components/camel-google/camel-google-secret-manager/pom.xml
@@ -34,6 +34,7 @@
<properties>
<firstVersion>3.16.0</firstVersion>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencyManagement>
@@ -107,29 +108,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-google/camel-google-sheets/pom.xml b/components/camel-google/camel-google-sheets/pom.xml
index e476576dd3e..a146ce1a4af 100644
--- a/components/camel-google/camel-google-sheets/pom.xml
+++ b/components/camel-google/camel-google-sheets/pom.xml
@@ -37,6 +37,8 @@
<componentName>GoogleSheets</componentName>
<componentPackage>org.apache.camel.component.google.sheets</componentPackage>
<outPackage>org.apache.camel.component.google.sheets.internal</outPackage>
+
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -242,16 +244,6 @@
</dependency>
</dependencies>
</plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
</plugins>
<pluginManagement>
diff --git a/components/camel-google/camel-google-storage/pom.xml b/components/camel-google/camel-google-storage/pom.xml
index 3f0d99f4e60..28e7b484e2c 100644
--- a/components/camel-google/camel-google-storage/pom.xml
+++ b/components/camel-google/camel-google-storage/pom.xml
@@ -32,6 +32,9 @@
<name>Camel :: Google :: Storage</name>
<description>For storing and accessing data on Google Cloud Platform</description>
+ <properties>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
+ </properties>
<dependencyManagement>
<dependencies>
<dependency>
@@ -76,29 +79,4 @@
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-hazelcast/pom.xml b/components/camel-hazelcast/pom.xml
index 23754626ba9..d47d8eaefb2 100644
--- a/components/camel-hazelcast/pom.xml
+++ b/components/camel-hazelcast/pom.xml
@@ -32,6 +32,7 @@
<description>Camel HazelCast based work queue implementation</description>
<properties>
+ <camel.surefire.fork.vmargs>--add-opens java.base/sun.nio.ch=ALL-UNNAMED</camel.surefire.fork.vmargs>
</properties>
<dependencies>
@@ -94,16 +95,12 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <!-- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds> -->
<systemProperties>
<property>
<name>hazelcast.logging.type</name>
<value>slf4j</value>
</property>
</systemProperties>
- <argLine>--add-opens java.base/sun.nio.ch=ALL-UNNAMED</argLine>
</configuration>
</plugin>
</plugins>
diff --git a/components/camel-ignite/pom.xml b/components/camel-ignite/pom.xml
index 3d15594c1db..2f81aaddbce 100644
--- a/components/camel-ignite/pom.xml
+++ b/components/camel-ignite/pom.xml
@@ -32,6 +32,7 @@
<description>Camel Ignite component</description>
<properties>
+ <camel.surefire.fork.vmargs>--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED --add-opens jdk. [...]
</properties>
<dependencies>
@@ -90,25 +91,4 @@
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED --add-opens jdk [...]
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-jcr/pom.xml b/components/camel-jcr/pom.xml
index 1aca912f9b9..1d7bcb63454 100644
--- a/components/camel-jcr/pom.xml
+++ b/components/camel-jcr/pom.xml
@@ -32,6 +32,7 @@
<description>Camel JCR support</description>
<properties>
+ <camel.surefire.reuseForks>false</camel.surefire.reuseForks>
</properties>
<dependencies>
@@ -69,26 +70,4 @@
<scope>test</scope>
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkCount>1</forkCount>
- <reuseForks>false</reuseForks>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-jgroups-raft/pom.xml b/components/camel-jgroups-raft/pom.xml
index 207f6053102..8ca173d4fb0 100644
--- a/components/camel-jgroups-raft/pom.xml
+++ b/components/camel-jgroups-raft/pom.xml
@@ -32,6 +32,7 @@
<description>Camel jgroups-raft support</description>
<properties>
+ <camel.surefire.fork.additional-vmargs>-Djava.net.preferIPv4Stack=true</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -84,7 +85,6 @@
<systemPropertyVariables>
<jgroups.bind_addr>127.0.0.1</jgroups.bind_addr>
</systemPropertyVariables>
- <argLine>${camel.surefire.fork.vmargs} -Djava.net.preferIPv4Stack=true</argLine>
</configuration>
</plugin>
</plugins>
diff --git a/components/camel-jgroups/pom.xml b/components/camel-jgroups/pom.xml
index 96bfba32b09..90de899daaa 100644
--- a/components/camel-jgroups/pom.xml
+++ b/components/camel-jgroups/pom.xml
@@ -32,6 +32,7 @@
<description>Camel JGroups support</description>
<properties>
+ <camel.surefire.fork.additional-vmargs>-Djava.net.preferIPv4Stack=true</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -90,7 +91,6 @@
<systemPropertyVariables>
<jgroups.bind_addr>127.0.0.1</jgroups.bind_addr>
</systemPropertyVariables>
- <argLine>${camel.surefire.fork.vmargs} -Djava.net.preferIPv4Stack=true</argLine>
</configuration>
</plugin>
</plugins>
diff --git a/components/camel-jms/pom.xml b/components/camel-jms/pom.xml
index 82e046b71d6..d1a0a8ea568 100644
--- a/components/camel-jms/pom.xml
+++ b/components/camel-jms/pom.xml
@@ -33,12 +33,12 @@
<description>Camel JMS support</description>
<properties>
-
<camel.surefire.reuseForks>true</camel.surefire.reuseForks>
<camel.surefire.forkCount>1</camel.surefire.forkCount>
<camel.surefire.forkTimeout>1200</camel.surefire.forkTimeout>
<camel.surefire.parallel>true</camel.surefire.parallel>
<camel.surefire.parallel.factor>0.5</camel.surefire.parallel.factor>
+ <camel.surefire.fork.additional-vmargs>-Xmx1G</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -184,9 +184,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>${camel.surefire.fork.vmargs} -Xmx1024m</argLine>
- </configuration>
<executions>
<execution>
<id>default-test</id>
@@ -194,8 +191,6 @@
<goal>test</goal>
</goals>
<configuration>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
<excludedGroups>not-parallel</excludedGroups>
</configuration>
</execution>
@@ -206,9 +201,7 @@
</goals>
<configuration>
<forkCount>4</forkCount>
- <reuseForks>true</reuseForks>
<groups>not-parallel</groups>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
</configuration>
</execution>
</executions>
diff --git a/components/camel-jpa/pom.xml b/components/camel-jpa/pom.xml
index 02f4f0f97b0..9d4994da28f 100644
--- a/components/camel-jpa/pom.xml
+++ b/components/camel-jpa/pom.xml
@@ -34,6 +34,8 @@
<properties>
<!-- Needs to be investigated: crashes on CI on s390x -->
<skipTests.s390x>true</skipTests.s390x>
+ <camel.surefire.fork.additional-vmargs>-javaagent:${project.basedir}/target/openjpa-${openjpa-version}-jakarta.jar -Xmx3G</camel.surefire.fork.additional-vmargs>
+ <camel.surefire.forkTimeout>240</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -282,15 +284,6 @@
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>-javaagent:${project.basedir}/target/openjpa-${openjpa-version}-jakarta.jar -Xmx3G
- ${camel.surefire.fork.vmargs}
- </argLine>
- <forkedProcessTimeoutInSeconds>240</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
</plugins>
</build>
</profile>
diff --git a/components/camel-kudu/pom.xml b/components/camel-kudu/pom.xml
index 092d312f4e3..3bc924fbf94 100644
--- a/components/camel-kudu/pom.xml
+++ b/components/camel-kudu/pom.xml
@@ -31,26 +31,10 @@
<name>Camel :: Kudu</name>
<description>Camel Apache Kudu support</description>
+ <properties>
+ <camel.surefire.fork.vmargs>--add-opens java.base/java.net=ALL-UNNAMED</camel.surefire.fork.vmargs>
+ </properties>
<profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.net=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
<profile>
<!-- kudu-binary is only available for Linux or macOS on x86 64 -->
<id>NotLinux</id>
diff --git a/components/camel-leveldb/pom.xml b/components/camel-leveldb/pom.xml
index 34e559654d0..4734d13c25c 100644
--- a/components/camel-leveldb/pom.xml
+++ b/components/camel-leveldb/pom.xml
@@ -78,23 +78,4 @@
<scope>test</scope>
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>jdk17-build</id>
- <activation>
- <jdk>[17,)</jdk>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
diff --git a/components/camel-mail/pom.xml b/components/camel-mail/pom.xml
index 6fe66ed376f..26038d4bad1 100644
--- a/components/camel-mail/pom.xml
+++ b/components/camel-mail/pom.xml
@@ -32,6 +32,7 @@
<description>Camel Mail support</description>
<properties>
+ <camel.surefire.fork.additional-vmargs>-Dfile.encoding=UTF-8</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -134,27 +135,4 @@
</plugin>
</plugins>
</build>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <!-- required to make MailMimeDecodeHeadersTest work on operating systems with a different default encoding -->
- <argLine>-Dfile.encoding=UTF-8</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-master/pom.xml b/components/camel-master/pom.xml
index 25804ac1827..dbcedf6f4b0 100644
--- a/components/camel-master/pom.xml
+++ b/components/camel-master/pom.xml
@@ -54,29 +54,4 @@
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-mina/pom.xml b/components/camel-mina/pom.xml
index bdb68593cd7..4d28e9c0b43 100644
--- a/components/camel-mina/pom.xml
+++ b/components/camel-mina/pom.xml
@@ -32,6 +32,7 @@
<description>Camel MINA support</description>
<properties>
+ <camel.surefire.forkTimeout>1800</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -96,7 +97,6 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
<excludes>
<!-- This test just show the shutdown error -->
<exclude>**/MinaProducerShutdownTest.*</exclude>
diff --git a/components/camel-mllp/pom.xml b/components/camel-mllp/pom.xml
index 54add0b8b60..bf6c4edea57 100644
--- a/components/camel-mllp/pom.xml
+++ b/components/camel-mllp/pom.xml
@@ -80,29 +80,4 @@
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-observation/pom.xml b/components/camel-observation/pom.xml
index 24aeb5748cf..989f7debe1f 100644
--- a/components/camel-observation/pom.xml
+++ b/components/camel-observation/pom.xml
@@ -42,6 +42,7 @@
<camel.surefire.forkTimeout>1200</camel.surefire.forkTimeout>
<camel.surefire.parallel>true</camel.surefire.parallel>
<camel.surefire.parallel.factor>0.5</camel.surefire.parallel.factor>
+ <camel.surefire.fork.additional-vmargs>-Xmx1G</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -102,9 +103,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>${camel.surefire.fork.vmargs} -Xmx1024m</argLine>
- </configuration>
<executions>
<execution>
<id>default-test</id>
@@ -112,8 +110,6 @@
<goal>test</goal>
</goals>
<configuration>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
<excludedGroups>not-parallel</excludedGroups>
</configuration>
</execution>
@@ -124,9 +120,7 @@
</goals>
<configuration>
<forkCount>4</forkCount>
- <reuseForks>true</reuseForks>
<groups>not-parallel</groups>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
</configuration>
</execution>
</executions>
diff --git a/components/camel-opensearch/pom.xml b/components/camel-opensearch/pom.xml
index 968c4fca974..76018ac4eea 100644
--- a/components/camel-opensearch/pom.xml
+++ b/components/camel-opensearch/pom.xml
@@ -36,6 +36,8 @@
<!-- OpenSearch container is not available on these platforms -->
<skipITs.ppc64le>true</skipITs.ppc64le>
<skipITs.s390x>true</skipITs.s390x>
+
+ <camel.surefire.reuseForks>false</camel.surefire.reuseForks>
</properties>
<dependencies>
@@ -111,8 +113,6 @@
<systemPropertyVariables>
<os.path.data>target/data</os.path.data>
</systemPropertyVariables>
- <forkCount>1</forkCount>
- <reuseForks>false</reuseForks>
</configuration>
</plugin>
</plugins>
diff --git a/components/camel-opentelemetry/pom.xml b/components/camel-opentelemetry/pom.xml
index 3c91e03d650..3791120796f 100644
--- a/components/camel-opentelemetry/pom.xml
+++ b/components/camel-opentelemetry/pom.xml
@@ -42,6 +42,7 @@
<camel.surefire.forkTimeout>1200</camel.surefire.forkTimeout>
<camel.surefire.parallel>true</camel.surefire.parallel>
<camel.surefire.parallel.factor>0.5</camel.surefire.parallel.factor>
+ <camel.surefire.fork.additional-vmargs>-Xmx1G</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -112,9 +113,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>${camel.surefire.fork.vmargs} -Xmx1024m</argLine>
- </configuration>
<executions>
<execution>
<id>default-test</id>
@@ -122,8 +120,6 @@
<goal>test</goal>
</goals>
<configuration>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
<excludedGroups>not-parallel</excludedGroups>
</configuration>
</execution>
@@ -134,9 +130,7 @@
</goals>
<configuration>
<forkCount>4</forkCount>
- <reuseForks>true</reuseForks>
<groups>not-parallel</groups>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
</configuration>
</execution>
</executions>
diff --git a/components/camel-printer/pom.xml b/components/camel-printer/pom.xml
index 8d3a3d8ddeb..788d069ef07 100644
--- a/components/camel-printer/pom.xml
+++ b/components/camel-printer/pom.xml
@@ -32,6 +32,7 @@
<description>Camel Printer support</description>
<properties>
+ <camel.surefire.fork.vmargs>--add-opens java.desktop/sun.awt=ALL-UNNAMED --add-opens java.desktop/javax.print=ALL-UNNAMED</camel.surefire.fork.vmargs>
</properties>
<dependencies>
@@ -75,22 +76,4 @@
</plugin>
</plugins>
</build>
- <profiles>
- <profile>
- <id>jdk17-build</id>
- <activation>
- <jdk>[17,)</jdk>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.desktop/sun.awt=ALL-UNNAMED --add-opens java.desktop/javax.print=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-pulsar/pom.xml b/components/camel-pulsar/pom.xml
index b1797a1f004..29a73d6adc3 100644
--- a/components/camel-pulsar/pom.xml
+++ b/components/camel-pulsar/pom.xml
@@ -37,6 +37,7 @@
<skipITs.ppc64le>true</skipITs.ppc64le>
<skipITs.s390x>true</skipITs.s390x>
<skipITs.aarch64>true</skipITs.aarch64>
+ <camel.surefire.fork.additional-vmargs>--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.net=ALL-UNNAMED</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -104,22 +105,9 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
<systemProperties>
<pulsar.container>apachepulsar/pulsar:${pulsar-version}</pulsar.container>
</systemProperties>
- <argLine>--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.net=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-failsafe-plugin</artifactId>
- <configuration>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
</configuration>
</plugin>
</plugins>
diff --git a/components/camel-robotframework/pom.xml b/components/camel-robotframework/pom.xml
index f9d18243cf3..cbce626c341 100644
--- a/components/camel-robotframework/pom.xml
+++ b/components/camel-robotframework/pom.xml
@@ -34,6 +34,9 @@
<name>Camel :: RobotFramework</name>
<description>Camel RobotFramework Support</description>
+ <properties>
+ <camel.surefire.fork.additional-vmargs>--add-opens java.base/java.io=ALL-UNNAMED</camel.surefire.fork.additional-vmargs>
+ </properties>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
@@ -65,25 +68,4 @@
<scope>test</scope>
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.io=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
diff --git a/components/camel-rocketmq/pom.xml b/components/camel-rocketmq/pom.xml
index 66b2302d308..695f40801d1 100644
--- a/components/camel-rocketmq/pom.xml
+++ b/components/camel-rocketmq/pom.xml
@@ -32,6 +32,10 @@
<name>Camel :: RocketMQ</name>
<description>Camel RocketMQ Component</description>
+ <properties>
+ <camel.surefire.fork.additional-vmargs>--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED</camel.surefire.fork.additional-vmargs>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
@@ -78,25 +82,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-rxjava/pom.xml b/components/camel-rxjava/pom.xml
index 9dc0663b947..e2a11ccddc3 100644
--- a/components/camel-rxjava/pom.xml
+++ b/components/camel-rxjava/pom.xml
@@ -35,6 +35,9 @@
<firstVersion>2.22.0</firstVersion>
<label>reactive,streams</label>
<title>RxJava</title>
+
+ <camel.surefire.fork.additional-vmargs>-Xmx2G</camel.surefire.fork.additional-vmargs>
+ <camel.surefire.forkTimeout>120</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -72,27 +75,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>-Xmx2G ${camel.surefire.fork.vmargs}
- </argLine>
- <forkedProcessTimeoutInSeconds>120</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-salesforce/camel-salesforce-component/pom.xml b/components/camel-salesforce/camel-salesforce-component/pom.xml
index 42b91b41d6f..f7dec1bd151 100644
--- a/components/camel-salesforce/camel-salesforce-component/pom.xml
+++ b/components/camel-salesforce/camel-salesforce-component/pom.xml
@@ -262,15 +262,6 @@
</extension>
</extensions>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/*IntegrationTest.java</exclude>
- </excludes>
- </configuration>
- </plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
diff --git a/components/camel-sap-netweaver/pom.xml b/components/camel-sap-netweaver/pom.xml
index ea3daa70da0..59aedee03f7 100644
--- a/components/camel-sap-netweaver/pom.xml
+++ b/components/camel-sap-netweaver/pom.xml
@@ -32,6 +32,7 @@
<description>Camel SAP NetWeaver support</description>
<properties>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -80,11 +81,6 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
<includes>
<!-- Here we only run test of -->
<include>**/*UriConfigurationTest.java</include>
@@ -103,11 +99,6 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
<includes>
<include>**/*Test.java</include>
</includes>
diff --git a/components/camel-service/pom.xml b/components/camel-service/pom.xml
index cd80cbe492d..d7e54c94cf2 100644
--- a/components/camel-service/pom.xml
+++ b/components/camel-service/pom.xml
@@ -50,29 +50,4 @@
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-servlet/pom.xml b/components/camel-servlet/pom.xml
index ae118b8cdd4..da30c8aaf32 100644
--- a/components/camel-servlet/pom.xml
+++ b/components/camel-servlet/pom.xml
@@ -33,6 +33,7 @@
<description>Camel servlet transport support</description>
<properties>
+ <camel.surefire.fork.vmargs>--add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED</camel.surefire.fork.vmargs>
</properties>
<dependencies>
@@ -118,23 +119,4 @@
<scope>test</scope>
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>jdk17-build</id>
- <activation>
- <jdk>[17,)</jdk>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
diff --git a/components/camel-sjms/pom.xml b/components/camel-sjms/pom.xml
index 3dc9b15902e..ffe72bf5e7a 100644
--- a/components/camel-sjms/pom.xml
+++ b/components/camel-sjms/pom.xml
@@ -32,6 +32,7 @@
<description>A pure Java JMS Camel Component</description>
<properties>
+ <camel.surefire.forkTimeout>6000</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -91,25 +92,4 @@
</plugin>
</plugins>
</build>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkedProcessTimeoutInSeconds>6000</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-sjms2/pom.xml b/components/camel-sjms2/pom.xml
index 27249c31836..e69572b9e32 100644
--- a/components/camel-sjms2/pom.xml
+++ b/components/camel-sjms2/pom.xml
@@ -33,6 +33,7 @@
<description>A pure Java JMS 2.0 Camel Component</description>
<properties>
+ <camel.surefire.forkTimeout>6000</camel.surefire.forkTimeout>
</properties>
<dependencies>
@@ -95,25 +96,4 @@
</plugin>
</plugins>
</build>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkedProcessTimeoutInSeconds>6000</forkedProcessTimeoutInSeconds>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-soap/pom.xml b/components/camel-soap/pom.xml
index 5e944f4c845..44ed644f155 100644
--- a/components/camel-soap/pom.xml
+++ b/components/camel-soap/pom.xml
@@ -32,6 +32,7 @@
<description>Camel SOAP support</description>
<properties>
+ <camel.surefire.fork.additional-vmargs>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -254,25 +255,4 @@
</plugin>
</plugins>
</build>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-undertow/pom.xml b/components/camel-undertow/pom.xml
index 41a1706021b..7bb3dd8838c 100644
--- a/components/camel-undertow/pom.xml
+++ b/components/camel-undertow/pom.xml
@@ -32,6 +32,7 @@
<name>Camel :: Undertow</name>
<properties>
+ <camel.surefire.fork.additional-vmargs>-Dio.undertow.client.https.disableEndpointIdentification=true</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -157,26 +158,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>${camel.surefire.fork.vmargs} -Dio.undertow.client.https.disableEndpointIdentification=true</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/components/camel-xmpp/pom.xml b/components/camel-xmpp/pom.xml
index 3e7c04b6ff6..d39f3209526 100644
--- a/components/camel-xmpp/pom.xml
+++ b/components/camel-xmpp/pom.xml
@@ -106,7 +106,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <forkCount>1</forkCount>
<!-- Something on the tests generate a lot of bogus output-->
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
diff --git a/components/camel-zookeeper-master/pom.xml b/components/camel-zookeeper-master/pom.xml
index 6b5071fbe52..75204218fe1 100644
--- a/components/camel-zookeeper-master/pom.xml
+++ b/components/camel-zookeeper-master/pom.xml
@@ -132,15 +132,9 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <skipTests>${skipTests}</skipTests>
<systemPropertyVariables>
<visibleassertions.silence>true</visibleassertions.silence>
</systemPropertyVariables>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
</configuration>
</plugin>
</plugins>
diff --git a/components/camel-zookeeper/pom.xml b/components/camel-zookeeper/pom.xml
index 9be80117897..ab1a6dfe54c 100644
--- a/components/camel-zookeeper/pom.xml
+++ b/components/camel-zookeeper/pom.xml
@@ -195,20 +195,14 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <skipTests>${skipTests}</skipTests>
<systemPropertyVariables>
<visibleassertions.silence>true</visibleassertions.silence>
</systemPropertyVariables>
- <childDelegation>false</childDelegation>
- <useFile>true</useFile>
- <forkCount>1</forkCount>
- <reuseForks>true</reuseForks>
- <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
</configuration>
</plugin>
</plugins>
</build>
- </profile>
+ </profile>
<profile>
<id>ppc64le</id>
<activation>
diff --git a/core/camel-core/pom.xml b/core/camel-core/pom.xml
index 0c372afaea3..e82e18125ba 100644
--- a/core/camel-core/pom.xml
+++ b/core/camel-core/pom.xml
@@ -36,6 +36,7 @@
<firstVersion>1.0.0</firstVersion>
<camel.surefire.forkTimeout>3000</camel.surefire.forkTimeout>
<camel.surefire.parallel.strategy>custom</camel.surefire.parallel.strategy>
+ <camel.surefire.fork.additional-vmargs>-Xmx2G</camel.surefire.fork.additional-vmargs>
</properties>
<dependencies>
@@ -306,7 +307,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- skip file stress tests as they are intended to run manually -->
- <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
<excludes>
<exclude>org/apache/camel/component/file/stress/**.java</exclude>
<exclude>**/DistributedCompletionIntervalTest.java</exclude>
diff --git a/core/camel-main/pom.xml b/core/camel-main/pom.xml
index 75690cd31ff..6b034bc24b1 100644
--- a/core/camel-main/pom.xml
+++ b/core/camel-main/pom.xml
@@ -42,6 +42,7 @@
<sourcecheckExcludesComma>
${sourcecheckExcludes},
</sourcecheckExcludesComma>
+ <camel.surefire.fork.vmargs>--add-opens java.base/java.util=ALL-UNNAMED</camel.surefire.fork.vmargs>
</properties>
<dependencies>
@@ -206,25 +207,4 @@
</plugin>
</plugins>
</build>
-
- <profiles>
- <profile>
- <!--CAMEL-16943-->
- <id>jdk17-build</id>
- <activation>
- <jdk>[17,)</jdk>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.util=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
diff --git a/core/camel-management/pom.xml b/core/camel-management/pom.xml
index 53b05519e1a..5312ec62c34 100644
--- a/core/camel-management/pom.xml
+++ b/core/camel-management/pom.xml
@@ -38,6 +38,7 @@
<camel.surefire.parallel>false</camel.surefire.parallel>
<camel.surefire.forkCount>4</camel.surefire.forkCount>
<camel.surefire.forkTimeout>3000</camel.surefire.forkTimeout>
+ <camel.surefire.fork.vmargs>--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</camel.surefire.fork.vmargs>
</properties>
<dependencies>
@@ -309,21 +310,5 @@
</dependency>
</dependencies>
</profile>
- <profile>
- <id>jdk17-build</id>
- <activation>
- <jdk>[17,)</jdk>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
diff --git a/dsl/camel-kotlin-dsl/pom.xml b/dsl/camel-kotlin-dsl/pom.xml
index 04ce959ab89..6f78250ab10 100644
--- a/dsl/camel-kotlin-dsl/pom.xml
+++ b/dsl/camel-kotlin-dsl/pom.xml
@@ -43,6 +43,8 @@
<sourcecheckExcludesComma>
${sourcecheckExcludes},
</sourcecheckExcludesComma>
+
+ <camel.surefire.reuseForks>false</camel.surefire.reuseForks>
</properties>
<dependencies>
@@ -216,27 +218,4 @@
</plugin>
</plugins>
</build>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkCount>1</forkCount>
- <reuseForks>false</reuseForks>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/parent/pom.xml b/parent/pom.xml
index 5867a18c50b..fba9a329288 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -34,7 +34,8 @@
<properties>
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
- <camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError</camel.surefire.fork.vmargs>
+ <camel.surefire.fork.additional-vmargs></camel.surefire.fork.additional-vmargs><!-- Empty by default -->
+ <camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError ${camel.surefire.fork.additional-vmargs}</camel.surefire.fork.vmargs>
<camel.surefire.forkCount>1</camel.surefire.forkCount>
<camel.surefire.forkTimeout>600</camel.surefire.forkTimeout>
<camel.surefire.reuseForks>true</camel.surefire.reuseForks>
diff --git a/pom.xml b/pom.xml
index 20920cb1f0b..1765d88548b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -812,6 +812,12 @@
<failIfNoTests>false</failIfNoTests>
<skipTests>true</skipTests>
</configuration>
+ <executions>
+ <execution>
+ <id>default-test</id>
+ <phase>none</phase><!-- No need to even load the plugin during releases -->
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
diff --git a/tests/test-bundles/pom.xml b/tests/test-bundles/pom.xml
index dadb9ea946f..b90c00382c6 100644
--- a/tests/test-bundles/pom.xml
+++ b/tests/test-bundles/pom.xml
@@ -35,6 +35,7 @@
<properties>
<servicemix.legal.version>1.0</servicemix.legal.version>
+ <camel.surefire.forkTimeout>300</camel.surefire.forkTimeout>
</properties>
<build>
@@ -46,7 +47,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
<skip>true</skip>
</configuration>
</plugin>
diff --git a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
index 4610b104baf..eef0351f24f 100644
--- a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
+++ b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
@@ -32,6 +32,10 @@
<name>Camel :: Maven Plugins :: Camel EIP Documentation Enricher Plugin</name>
<description>Adds documentation to camel xsd schema</description>
+ <properties>
+ <camel.surefire.fork.additional-vmargs>--add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</camel.surefire.fork.additional-vmargs>
+ </properties>
+
<dependencyManagement>
<dependencies>
<dependency>
@@ -167,27 +171,4 @@
</plugins>
</pluginManagement>
</build>
-
- <profiles>
- <profile>
- <id>full</id>
- <activation>
- <property>
- <name>!quickly</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>--add-opens java.base/java.io=ALL-UNNAMED --add-opens
- java.base/java.lang=ALL-UNNAMED
- </argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>