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

ffang 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 31eed8be75a [CAMEL-16958]fix last piece of failed tests on JDK17
     new c314d09a78a Merge branch 'main' of github.com:apache/camel
31eed8be75a is described below

commit 31eed8be75a94ed71398fd12dff2ed9962936929
Author: Freeman Fang <freeman.f...@gmail.com>
AuthorDate: Tue Apr 19 09:30:55 2022 -0400

    [CAMEL-16958]fix last piece of failed tests on JDK17
---
 .../camel-infinispan/camel-infinispan/pom.xml      | 22 ++++++++++++++++++++++
 components/camel-servlet/pom.xml                   | 19 +++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/components/camel-infinispan/camel-infinispan/pom.xml 
b/components/camel-infinispan/camel-infinispan/pom.xml
index eea6dcfbe6a..f66cc9a5f06 100644
--- a/components/camel-infinispan/camel-infinispan/pom.xml
+++ b/components/camel-infinispan/camel-infinispan/pom.xml
@@ -159,4 +159,26 @@
             </plugin>
         </plugins>
     </build>
+
+    <profiles>
+        <profile>
+            <id>jdk17-build</id>
+            <activation>
+                <jdk>[17,)</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-failsafe-plugin</artifactId>
+                        <configuration>
+                            <systemPropertyVariables>
+                                
<infinispan.test.jgroups.protocol>tcp</infinispan.test.jgroups.protocol>
+                            </systemPropertyVariables>
+                            <argLine>--add-opens 
java.base/java.util=ALL-UNNAMED --add-opens 
java.base/java.util.concurrent=ALL-UNNAMED</argLine>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>
diff --git a/components/camel-servlet/pom.xml b/components/camel-servlet/pom.xml
index 61beb176f13..4444b0a34d5 100644
--- a/components/camel-servlet/pom.xml
+++ b/components/camel-servlet/pom.xml
@@ -120,4 +120,23 @@
             <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>

Reply via email to