CAMEL-10141: make camel-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/25ab34c0 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/25ab34c0 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/25ab34c0 Branch: refs/heads/master Commit: 25ab34c0ce828dc73c23c82234df05376ea61e85 Parents: ddf9853 Author: jpoth <poth.j...@gmail.com> Authored: Tue Apr 18 20:27:19 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 21 15:03:44 2017 +0200 ---------------------------------------------------------------------- components/camel-test/pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/25ab34c0/components/camel-test/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-test/pom.xml b/components/camel-test/pom.xml index 27572ce..d414b9b 100644 --- a/components/camel-test/pom.xml +++ b/components/camel-test/pom.xml @@ -68,4 +68,22 @@ </dependencies> + <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>