You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/12/19 08:24:38 UTC

[camel] branch main updated: CAMEL-18827: camel-kudu - Fix unit test failure with JDK 17 (#8920)

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

davsclaus 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 31276cc4d86 CAMEL-18827: camel-kudu - Fix unit test failure with JDK 17 (#8920)
31276cc4d86 is described below

commit 31276cc4d8666f038e9cbc2e338c4c137635661a
Author: Kengo Seki <se...@apache.org>
AuthorDate: Mon Dec 19 17:24:31 2022 +0900

    CAMEL-18827: camel-kudu - Fix unit test failure with JDK 17 (#8920)
---
 components/camel-kudu/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/components/camel-kudu/pom.xml b/components/camel-kudu/pom.xml
index d79c5e654e0..7b4c0c8bf5f 100644
--- a/components/camel-kudu/pom.xml
+++ b/components/camel-kudu/pom.xml
@@ -32,6 +32,22 @@
     <description>Camel Apache Kudu support</description>
 
     <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.net=ALL-UNNAMED</argLine>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
         <profile>
             <!-- kudu-binary is not available for Windows. It is needed for tests, so skip that -->
             <id>Windows</id>