CAMEL-10141: make camel-example-rest-producer 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/3b5fb602 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3b5fb602 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3b5fb602 Branch: refs/heads/master Commit: 3b5fb60278b7b15ce0a74ed92197e21d158a00cc Parents: 25ab34c Author: jpoth <poth.j...@gmail.com> Authored: Thu Apr 20 19:14:00 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 21 15:03:44 2017 +0200 ---------------------------------------------------------------------- examples/camel-example-rest-producer/pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/3b5fb602/examples/camel-example-rest-producer/pom.xml ---------------------------------------------------------------------- diff --git a/examples/camel-example-rest-producer/pom.xml b/examples/camel-example-rest-producer/pom.xml index 6954127..54d9327 100644 --- a/examples/camel-example-rest-producer/pom.xml +++ b/examples/camel-example-rest-producer/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>