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 5eed73b  [CAMEL-16971]tests in camel-websocket-jsr356 failed with JDK17
5eed73b is described below

commit 5eed73bb5c17f74a307858ef7ea360666fa0bb38
Author: Freeman Fang <freeman.f...@gmail.com>
AuthorDate: Mon Sep 27 14:24:59 2021 -0400

    [CAMEL-16971]tests in camel-websocket-jsr356 failed with JDK17
---
 components/camel-websocket-jsr356/pom.xml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/components/camel-websocket-jsr356/pom.xml 
b/components/camel-websocket-jsr356/pom.xml
index 78b79fa..2833dd5 100644
--- a/components/camel-websocket-jsr356/pom.xml
+++ b/components/camel-websocket-jsr356/pom.xml
@@ -90,4 +90,23 @@
         </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>

Reply via email to