CAMEL-10141: make camel-syslog 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/8c654e02 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8c654e02 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8c654e02 Branch: refs/heads/master Commit: 8c654e023a43bed6a482852d533f6a1cd2f50508 Parents: cc31fe4 Author: jpoth <poth.j...@gmail.com> Authored: Wed Mar 15 13:21:15 2017 +0100 Committer: jpoth <poth.j...@gmail.com> Committed: Wed Mar 15 15:30:07 2017 +0100 ---------------------------------------------------------------------- components/camel-syslog/pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/8c654e02/components/camel-syslog/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-syslog/pom.xml b/components/camel-syslog/pom.xml index 23a82cb..b6f5aa9 100644 --- a/components/camel-syslog/pom.xml +++ b/components/camel-syslog/pom.xml @@ -83,4 +83,22 @@ </dependency> </dependencies> + <profiles> + <profile> + <id>jdk9-build</id> + <activation> + <jdk>9</jdk> + </activation> + <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> </project>