CAMEL-10141: make camel-example-rest-servlet 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/3f9ebd5a Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3f9ebd5a Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3f9ebd5a Branch: refs/heads/master Commit: 3f9ebd5a0a9e23e5b8c2f10abdf0c1c6ca4eda90 Parents: 061eb24 Author: jpoth <poth.j...@gmail.com> Authored: Fri Apr 14 10:47:16 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 14 12:57:21 2017 +0200 ---------------------------------------------------------------------- examples/camel-example-cdi-rest-servlet/pom.xml | 43 +++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/3f9ebd5a/examples/camel-example-cdi-rest-servlet/pom.xml ---------------------------------------------------------------------- diff --git a/examples/camel-example-cdi-rest-servlet/pom.xml b/examples/camel-example-cdi-rest-servlet/pom.xml index 260d778..aac0973 100755 --- a/examples/camel-example-cdi-rest-servlet/pom.xml +++ b/examples/camel-example-cdi-rest-servlet/pom.xml @@ -163,6 +163,48 @@ </dependency> </dependencies> </profile> + <profile> + <id>jdk9-build-jetty</id> + <activation> + <jdk>9</jdk> + </activation> + <dependencies> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-webapp</artifactId> + <version>${jetty9-version}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-annotations</artifactId> + <version>${jetty9-version}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.jboss.arquillian.container</groupId> + <artifactId>arquillian-jetty-embedded-9</artifactId> + <version>1.0.0.CR2</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>org.jboss.arquillian.container</groupId> + <artifactId>arquillian-container-spi</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <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> @@ -175,5 +217,4 @@ </plugin> </plugins> </build> - </project>