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 8ef3d9b  [CAMEL-16965]tests in camel-leveldb failed with JDK17
8ef3d9b is described below

commit 8ef3d9b9654d25faf8fe7431c0e0fc0d6b02bb86
Author: Freeman Fang <freeman.f...@gmail.com>
AuthorDate: Tue Sep 21 11:43:38 2021 -0400

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

diff --git a/components/camel-leveldb/pom.xml b/components/camel-leveldb/pom.xml
index d107f33..fde1311 100644
--- a/components/camel-leveldb/pom.xml
+++ b/components/camel-leveldb/pom.xml
@@ -96,5 +96,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/java.lang=ALL-UNNAMED</argLine>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 
 </project>

Reply via email to