CAMEL-10141: make camel-netty 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/65d79322 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/65d79322 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/65d79322 Branch: refs/heads/master Commit: 65d7932282e99983717b1f5b9b661d2e19fc6e7e Parents: 689d3c8 Author: jpoth <[email protected]> Authored: Tue Mar 14 14:35:36 2017 +0100 Committer: jpoth <[email protected]> Committed: Tue Mar 14 17:49:05 2017 +0100 ---------------------------------------------------------------------- components/camel-netty-http/pom.xml | 22 +++++++++++++++++++++- components/camel-netty4/pom.xml | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/65d79322/components/camel-netty-http/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-netty-http/pom.xml b/components/camel-netty-http/pom.xml index 16ada35..584edaa 100644 --- a/components/camel-netty-http/pom.xml +++ b/components/camel-netty-http/pom.xml @@ -104,5 +104,25 @@ </plugin> </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,java.xml.ws.annotation --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.xml.ws.annotation/javax.annotation=ALL-UNNAMED</argLine> + <reuseForks>true</reuseForks> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> http://git-wip-us.apache.org/repos/asf/camel/blob/65d79322/components/camel-netty4/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-netty4/pom.xml b/components/camel-netty4/pom.xml index ce83b0f..10cc9bf 100644 --- a/components/camel-netty4/pom.xml +++ b/components/camel-netty4/pom.xml @@ -78,5 +78,25 @@ <scope>test</scope> </dependency> </dependencies> + + <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 --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED</argLine> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
