CAMEL-10141: make camel-testng 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/f092da98 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f092da98 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f092da98 Branch: refs/heads/master Commit: f092da98e6dd6dba0e73d5663547578b184f2d5d Parents: 2f1c1cc Author: jpoth <poth.j...@gmail.com> Authored: Fri Apr 21 14:47:06 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 21 15:03:44 2017 +0200 ---------------------------------------------------------------------- components/camel-testng/pom.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/f092da98/components/camel-testng/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-testng/pom.xml b/components/camel-testng/pom.xml index abacd5f..dc804ef 100644 --- a/components/camel-testng/pom.xml +++ b/components/camel-testng/pom.xml @@ -80,4 +80,23 @@ </dependencies> + <profiles> + <profile> + <id>jdk9-build</id> + <activation> + <jdk>9</jdk> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <reuseForks>true</reuseForks> + <argLine>--add-modules java.xml.bind,java.xml.ws --add-opens java.base/java.lang=ALL-UNNAMED</argLine> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>