CAMEL-10141: make camel-example-cdi-properties 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/061eb241 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/061eb241 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/061eb241 Branch: refs/heads/master Commit: 061eb2416cd5863cf845b330740cacaed83321cd Parents: 73b61ef Author: jpoth <poth.j...@gmail.com> Authored: Fri Apr 14 10:46:56 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 14 12:57:21 2017 +0200 ---------------------------------------------------------------------- examples/camel-example-cdi-properties/pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/061eb241/examples/camel-example-cdi-properties/pom.xml ---------------------------------------------------------------------- diff --git a/examples/camel-example-cdi-properties/pom.xml b/examples/camel-example-cdi-properties/pom.xml index 24adc77..ae2ae06 100755 --- a/examples/camel-example-cdi-properties/pom.xml +++ b/examples/camel-example-cdi-properties/pom.xml @@ -124,4 +124,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>