CAMEL-10141: make camel-example-spring-jms 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/3d9a999c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3d9a999c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3d9a999c Branch: refs/heads/master Commit: 3d9a999c035aa10bff547d0d3ee053528b615919 Parents: 9e7b6c6 Author: jpoth <poth.j...@gmail.com> Authored: Fri Apr 14 11:01:21 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 14 12:57:21 2017 +0200 ---------------------------------------------------------------------- examples/camel-example-spring-jms/pom.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/3d9a999c/examples/camel-example-spring-jms/pom.xml ---------------------------------------------------------------------- diff --git a/examples/camel-example-spring-jms/pom.xml b/examples/camel-example-spring-jms/pom.xml index da360e0..af430aa 100644 --- a/examples/camel-example-spring-jms/pom.xml +++ b/examples/camel-example-spring-jms/pom.xml @@ -128,6 +128,22 @@ <target.main.class>org.apache.camel.example.client.CamelClientEndpoint</target.main.class> </properties> </profile> + <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> <build> @@ -168,5 +184,4 @@ </plugins> </build> - </project>