CAMEL-10141: make camel-spring-boot unit 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/cad3c9cd Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cad3c9cd Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cad3c9cd Branch: refs/heads/master Commit: cad3c9cd1f59f322097bec41ed3607efb3cc8a46 Parents: 65d7932 Author: jpoth <poth.j...@gmail.com> Authored: Tue Mar 14 14:36:04 2017 +0100 Committer: jpoth <poth.j...@gmail.com> Committed: Tue Mar 14 17:49:05 2017 +0100 ---------------------------------------------------------------------- components/camel-spring-boot/pom.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/cad3c9cd/components/camel-spring-boot/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/pom.xml b/components/camel-spring-boot/pom.xml index cd3c452..f17f90f 100644 --- a/components/camel-spring-boot/pom.xml +++ b/components/camel-spring-boot/pom.xml @@ -123,4 +123,23 @@ </plugins> </build> + <profiles> + <profile> + <id>jdk9-build</id> + <activation> + <jdk>9</jdk> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <forkedProcessTimeoutInSeconds>3000</forkedProcessTimeoutInSeconds> + <argLine>--add-modules java.xml.bind --add-opens java.base/java.lang=ALL-UNNAMED</argLine> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>