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 d39c05c  [CAMEL-16960]tests in camel-cxf failed with JDK17
d39c05c is described below

commit d39c05c67ecfeb46d5d9b5542c6a30394902400e
Author: Freeman Fang <freeman.f...@gmail.com>
AuthorDate: Mon Sep 20 13:34:37 2021 -0400

    [CAMEL-16960]tests in camel-cxf failed with JDK17
---
 components/camel-cxf/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/components/camel-cxf/pom.xml b/components/camel-cxf/pom.xml
index 02c84f2..9ea1dde 100644
--- a/components/camel-cxf/pom.xml
+++ b/components/camel-cxf/pom.xml
@@ -473,5 +473,21 @@
                 </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>
     </profiles>
 </project>

Reply via email to