CAMEL-10968: make camel-cxf-transport 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/a01f14cd Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a01f14cd Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a01f14cd Branch: refs/heads/master Commit: a01f14cdda7b576e42be4357625fec374555f6ae Parents: 7b2d32e Author: jpoth <poth.j...@gmail.com> Authored: Fri Apr 14 11:06:00 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 14 12:57:21 2017 +0200 ---------------------------------------------------------------------- components/camel-cxf-transport/pom.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/a01f14cd/components/camel-cxf-transport/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-cxf-transport/pom.xml b/components/camel-cxf-transport/pom.xml index 93d650b..bc76a6a 100644 --- a/components/camel-cxf-transport/pom.xml +++ b/components/camel-cxf-transport/pom.xml @@ -215,5 +215,25 @@ </plugin> </plugins> </build> + + <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.ws --add-opens java.base/java.lang=ALL-UNNAMED</argLine> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>