CAMEL-10141: make camel-example-cdi-metrics 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/73b61ef3 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/73b61ef3 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/73b61ef3 Branch: refs/heads/master Commit: 73b61ef32533aac448fe5c31d2f28f0373ad5d90 Parents: d590e92 Author: jpoth <poth.j...@gmail.com> Authored: Fri Apr 14 10:46:37 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 14 12:57:21 2017 +0200 ---------------------------------------------------------------------- examples/camel-example-cdi-metrics/pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/73b61ef3/examples/camel-example-cdi-metrics/pom.xml ---------------------------------------------------------------------- diff --git a/examples/camel-example-cdi-metrics/pom.xml b/examples/camel-example-cdi-metrics/pom.xml index 08401f7..5f09f7c 100755 --- a/examples/camel-example-cdi-metrics/pom.xml +++ b/examples/camel-example-cdi-metrics/pom.xml @@ -127,4 +127,22 @@ </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>