You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2022/10/13 10:02:29 UTC

[camel] branch main updated: CAMEL-18608: camel-cmis - Add missing --add-opens for JDK 17

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

nfilotto 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 b82ab87db7d CAMEL-18608: camel-cmis - Add missing --add-opens for JDK 17
b82ab87db7d is described below

commit b82ab87db7d03f9ab44c1d4a94df2a1a19280662
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Thu Oct 13 12:02:03 2022 +0200

    CAMEL-18608: camel-cmis - Add missing --add-opens for JDK 17
---
 components/camel-cmis/pom.xml | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/components/camel-cmis/pom.xml b/components/camel-cmis/pom.xml
index 6f62cdcb7e6..7dc06a9ea97 100644
--- a/components/camel-cmis/pom.xml
+++ b/components/camel-cmis/pom.xml
@@ -75,11 +75,6 @@
             <scope>test</scope>
         </dependency>
 
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-slf4j-impl</artifactId>
-            <scope>test</scope>
-        </dependency>
     </dependencies>
 
     <build>
@@ -140,5 +135,22 @@
             </plugin>
         </plugins>
     </build>
-
+    <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>