CAMEL-10141: make camel-example-cdi-test 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/d590e921 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d590e921 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d590e921 Branch: refs/heads/master Commit: d590e92118a20b07c8a7d136d754a26e5055af86 Parents: 1e31f1e Author: jpoth <poth.j...@gmail.com> Authored: Fri Apr 14 10:45:56 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 14 12:57:21 2017 +0200 ---------------------------------------------------------------------- examples/camel-example-cdi-test/pom.xml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/d590e921/examples/camel-example-cdi-test/pom.xml ---------------------------------------------------------------------- diff --git a/examples/camel-example-cdi-test/pom.xml b/examples/camel-example-cdi-test/pom.xml index d1b5765..697847c 100644 --- a/examples/camel-example-cdi-test/pom.xml +++ b/examples/camel-example-cdi-test/pom.xml @@ -106,7 +106,24 @@ </dependencies> </plugin> </plugins> - </build> + <profiles> + <profile> + <id>jdk9-build</id> + <activation> + <jdk>9</jdk> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <argLine>--add-modules java.xml.bind --add-opens java.base/java.lang=ALL-UNNAMED</argLine> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>