You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ff...@apache.org on 2021/09/24 19:59:01 UTC

[camel] branch main updated: [CAMEL-16943]MainPropertyPlaceholderWithEnvTest failed with JDK17

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 227b785  [CAMEL-16943]MainPropertyPlaceholderWithEnvTest failed with JDK17
227b785 is described below

commit 227b785ecdfaed8cdae2dd28adbc54c4405a432b
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Fri Sep 24 15:58:30 2021 -0400

    [CAMEL-16943]MainPropertyPlaceholderWithEnvTest failed with JDK17
---
 core/camel-main/pom.xml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/core/camel-main/pom.xml b/core/camel-main/pom.xml
index 8da4164..9f95d3c 100644
--- a/core/camel-main/pom.xml
+++ b/core/camel-main/pom.xml
@@ -198,4 +198,24 @@
         </plugins>
     </build>
 
+    <profiles>
+        <profile>
+            <!--CAMEL-16943-->
+            <id>jdk17-build</id>
+            <activation>
+                <jdk>[17,)</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <argLine>--add-opens java.base/java.util=ALL-UNNAMED</argLine>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
 </project>