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 c52fd64 [CAMEL-16962]tests in camel-flink failed with JDK17
new b5f3306 Merge branch 'main' of github.com:apache/camel into main
c52fd64 is described below
commit c52fd647fa43dfe17f4bae11b9abedcbf92f6005
Author: Freeman Fang <[email protected]>
AuthorDate: Tue Sep 21 10:45:54 2021 -0400
[CAMEL-16962]tests in camel-flink failed with JDK17
---
components/camel-flink/pom.xml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/components/camel-flink/pom.xml b/components/camel-flink/pom.xml
index 0b0d557..ce0cfa1 100644
--- a/components/camel-flink/pom.xml
+++ b/components/camel-flink/pom.xml
@@ -114,4 +114,23 @@
</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>