CAMEL-10141: make camel-spring-javaconfig 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/53e70d36 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/53e70d36 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/53e70d36 Branch: refs/heads/master Commit: 53e70d36fc82f12021c3c247ebf32a0aaec6c30c Parents: 6447df2 Author: jpoth <poth.j...@gmail.com> Authored: Fri Apr 21 14:47:48 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 21 15:03:44 2017 +0200 ---------------------------------------------------------------------- components/camel-spring-javaconfig/pom.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/53e70d36/components/camel-spring-javaconfig/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-spring-javaconfig/pom.xml b/components/camel-spring-javaconfig/pom.xml index ce09027..8b1d5d5 100644 --- a/components/camel-spring-javaconfig/pom.xml +++ b/components/camel-spring-javaconfig/pom.xml @@ -92,4 +92,23 @@ </dependency> </dependencies> + <profiles> + <profile> + <id>jdk9-build</id> + <activation> + <jdk>9</jdk> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <reuseForks>true</reuseForks> + <argLine>--add-modules java.xml.bind,java.xml.ws --add-opens java.base/java.lang=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime.reflect=ALL-UNNAMED</argLine> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>