CAMEL-10141: make camel-bindy unit tests pass on Java 9
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e9aec2b3 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e9aec2b3 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e9aec2b3 Branch: refs/heads/master Commit: e9aec2b338db217047aaf9fd86c9f0b6b2620d3c Parents: cad3c9c Author: jpoth <poth.j...@gmail.com> Authored: Tue Mar 14 14:36:21 2017 +0100 Committer: jpoth <poth.j...@gmail.com> Committed: Tue Mar 14 17:49:05 2017 +0100 ---------------------------------------------------------------------- components/camel-bindy/pom.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/e9aec2b3/components/camel-bindy/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-bindy/pom.xml b/components/camel-bindy/pom.xml index 6627a8c..f79249d 100755 --- a/components/camel-bindy/pom.xml +++ b/components/camel-bindy/pom.xml @@ -89,4 +89,24 @@ </dependency> </dependencies> + + <profiles> + <profile> + <id>jdk9-build</id> + <activation> + <jdk>9</jdk> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <forkedProcessTimeoutInSeconds>3000</forkedProcessTimeoutInSeconds> + <argLine>--add-modules java.xml.bind,java.xml.ws.annotation --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.xml.ws.annotation/javax.annotation=ALL-UNNAMED</argLine> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>