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 02a945c [CAMEL-16966]tests in camel-printer failed with JDK17
02a945c is described below
commit 02a945c1cc18fe36fb84fc4c8d6577eb098442f9
Author: Freeman Fang <[email protected]>
AuthorDate: Thu Sep 16 10:03:51 2021 -0400
[CAMEL-16966]tests in camel-printer failed with JDK17
---
components/camel-printer/pom.xml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/components/camel-printer/pom.xml b/components/camel-printer/pom.xml
index 67fdc44..d466be6 100644
--- a/components/camel-printer/pom.xml
+++ b/components/camel-printer/pom.xml
@@ -79,4 +79,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.desktop/sun.awt=ALL-UNNAMED --add-opens
java.desktop/javax.print=ALL-UNNAMED</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>