CAMEL-10141: make camel-example-osgi-rmi 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/047761a7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/047761a7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/047761a7

Branch: refs/heads/master
Commit: 047761a787d646759069e1ac318ba3523816ec08
Parents: 3d9a999
Author: jpoth <poth.j...@gmail.com>
Authored: Fri Apr 14 11:01:50 2017 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Fri Apr 14 12:57:21 2017 +0200

----------------------------------------------------------------------
 examples/camel-example-osgi-rmi/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/047761a7/examples/camel-example-osgi-rmi/pom.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-osgi-rmi/pom.xml 
b/examples/camel-example-osgi-rmi/pom.xml
index dce39d2..82c588d 100644
--- a/examples/camel-example-osgi-rmi/pom.xml
+++ b/examples/camel-example-osgi-rmi/pom.xml
@@ -87,6 +87,22 @@
         
<target.main.class>org.apache.camel.example.osgi.HelloClient</target.main.class>
       </properties>
     </profile>
+    <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>
 
   <build>

Reply via email to