[1/8] camel git commit: CAMEL-10141: make camel-spring tests pass on Java 9. This required the use of Java's native shemagen instead of jaxb-xjc's embedded schemagen which doesn't work on Java 9

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[1/8] camel git commit: CAMEL-10141: make camel-spring tests pass on Java 9. This required the use of Java's native shemagen instead of jaxb-xjc's embedded schemagen which doesn't work on Java 9

davsclaus-2
Repository: camel
Updated Branches:
  refs/heads/master ddf98531f -> 82264a3b6


CAMEL-10141: make camel-spring tests pass on Java 9. This required the use of Java's native shemagen instead of jaxb-xjc's embedded schemagen which doesn't work 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/82264a3b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/82264a3b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/82264a3b

Branch: refs/heads/master
Commit: 82264a3b60147bb3fdf92275929ffc34346b5927
Parents: 53e70d36
Author: jpoth <[hidden email]>
Authored: Fri Apr 21 14:51:10 2017 +0200
Committer: Claus Ibsen <[hidden email]>
Committed: Fri Apr 21 15:03:44 2017 +0200

----------------------------------------------------------------------
 components/camel-spring/pom.xml | 162 ++++++++++++++++++++++++++++-------
 1 file changed, 132 insertions(+), 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/82264a3b/components/camel-spring/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-spring/pom.xml b/components/camel-spring/pom.xml
index e44e5bf..afa10f7 100644
--- a/components/camel-spring/pom.xml
+++ b/components/camel-spring/pom.xml
@@ -305,7 +305,6 @@
             <phase>process-classes</phase>
             <configuration>
               <target>
-                <taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask" classpathref="maven.plugin.classpath" />
                 <echo>Copying code together for the XSD generation</echo>
                 <mkdir dir="${project.build.directory}/schema-src" />
                 <copy todir="${project.build.directory}/schema-src">
@@ -331,15 +330,6 @@
                     <include name="org/apache/camel/package-info.java" />
                   </fileset>
                 </copy>
-                <echo>Generating XSD schema</echo>
-                <mkdir dir="${project.build.directory}/schema" />
-                <schemagen srcdir="${project.build.directory}/schema-src" destdir="${project.build.directory}/schema">
-                    <schema namespace="http://camel.apache.org/schema/spring" file="camel-spring.xsd" />
-                    <compilerarg line="-target ${jdk.version}"/>
-                    <compilerarg line="-source ${jdk.version}"/>
-                    <classpath refid="maven.compile.classpath" />
-                </schemagen>
-
               </target>
             </configuration>
             <goals>
@@ -568,31 +558,143 @@
     </profile>
 
     <profile>
+      <id>jdk8</id>
+      <activation>
+        <jdk>(,1.8]</jdk>
+      </activation>
+      <dependencies>
+        <!-- xmltokenizer using woodstox -->
+        <dependency>
+          <groupId>org.codehaus.woodstox</groupId>
+          <artifactId>woodstox-core-asl</artifactId>
+          <version>${woodstox-version}</version>
+          <scope>test</scope>
+        </dependency>
+      </dependencies>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.8</version>
+            <executions>
+              <execution>
+                <id>generate-schema</id>
+                <phase>process-classes</phase>
+                <configuration>
+                  <target>
+                    <echo>Generating XSD schema</echo>
+                    <taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask" classpathref="maven.plugin.classpath" />
+                    <mkdir dir="${project.build.directory}/schema" />
+                    <schemagen srcdir="${project.build.directory}/schema-src" destdir="${project.build.directory}/schema">
+                      <schema namespace="http://camel.apache.org/schema/spring" file="camel-spring.xsd" />
+                      <compilerarg line="-target ${jdk.version}"/>
+                      <compilerarg line="-source ${jdk.version}"/>
+                      <classpath refid="maven.compile.classpath" />
+                    </schemagen>
+                  </target>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <profile>
       <id>jdk9-build</id>
       <activation>
         <jdk>9</jdk>
       </activation>
+      <dependencies>
+        <!-- xmltokenizer using woodstox -->
+        <dependency>
+          <groupId>org.codehaus.woodstox</groupId>
+          <artifactId>woodstox-core-asl</artifactId>
+          <version>${woodstox-version}</version>
+          <scope>test</scope>
+        </dependency>
+      </dependencies>
       <build>
-        <pluginManagement>
-          <plugins>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-antrun-plugin</artifactId>
-              <dependencies>
-                <dependency>
-                  <groupId>javax.xml.bind</groupId>
-                  <artifactId>jaxb-api</artifactId>
-                  <version>${jaxb-version}</version>
-                </dependency>
-                <dependency>
-                  <groupId>javax.activation</groupId>
-                  <artifactId>activation</artifactId>
-                  <version>1.1.1</version>
-                </dependency>
-              </dependencies>
-            </plugin>
-          </plugins>
-        </pluginManagement>
+        <plugins>
+          <plugin>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <argLine>--add-modules java.xml.bind,java.xml.ws --add-opens java.base/java.lang=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime.reflect=ALL-UNNAMED</argLine>
+            </configuration>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.8</version>
+            <executions>
+              <execution>
+                <id>list-source-files-for-schema-generation</id>
+                <phase>process-classes</phase>
+                <configuration>
+                  <target>
+                    <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" />
+                    <path id ="source.files.list">
+                      <fileset dir="${project.build.directory}/schema-src">
+                        <include name="**/*.java" />
+                      </fileset>
+                    </path>
+                    <property name="source.files.property" refid="source.files.list"/>
+                    <propertyregex property="schema.source.formatted" input="${source.files.property}" regexp=":" replace=" " global="true" />
+                    <property name="schema.source.files" value="${schema.source.formatted}"/>
+                    <echo>Schema files ${schema.source.files}</echo>
+                  </target>
+                  <exportAntProperties>true</exportAntProperties>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>exec-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>generate schema</id>
+                <phase>generate-test-sources</phase>
+                <goals>
+                  <goal>exec</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <executable>schemagen</executable>
+              <commandlineArgs>-cp %classpath ${schema.source.files}</commandlineArgs>
+            </configuration>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.8</version>
+            <executions>
+              <execution>
+                <id>cpy-schema</id>
+                <phase>generate-test-sources</phase>
+                <configuration>
+                  <target>
+                    <echo>Copying XSD schema to be included in JAR</echo>
+                    <move file="${project.basedir}/schema1.xsd" tofile="${project.build.directory}/schema/camel-spring.xsd" />
+                    <delete file="${project.basedir}/schema2.xsd"/>
+                  </target>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
       </build>
     </profile>
   </profiles>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[2/8] camel git commit: CAMEL-10141: make camel-test-spring tests pass on Java 9

davsclaus-2
CAMEL-10141: make camel-test-spring 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/6447df24
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6447df24
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6447df24

Branch: refs/heads/master
Commit: 6447df246ce7fb2351aa474c37f704396d177210
Parents: f092da9
Author: jpoth <[hidden email]>
Authored: Fri Apr 21 14:47:26 2017 +0200
Committer: Claus Ibsen <[hidden email]>
Committed: Fri Apr 21 15:03:44 2017 +0200

----------------------------------------------------------------------
 components/camel-test-spring/pom.xml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6447df24/components/camel-test-spring/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/pom.xml b/components/camel-test-spring/pom.xml
index 7b67afa..3f3f7bb 100644
--- a/components/camel-test-spring/pom.xml
+++ b/components/camel-test-spring/pom.xml
@@ -71,4 +71,24 @@
       <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>
+              <reuseForks>true</reuseForks>
+              <argLine>--add-modules java.xml.bind,java.xml.ws --add-opens java.base/java.lang=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime.reflect=ALL-UNNAMED</argLine>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[3/8] camel git commit: CAMEL-10141: make camel-example-rest-producer tests pass on Java 9

davsclaus-2
In reply to this post by davsclaus-2
CAMEL-10141: make camel-example-rest-producer 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/3b5fb602
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3b5fb602
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3b5fb602

Branch: refs/heads/master
Commit: 3b5fb60278b7b15ce0a74ed92197e21d158a00cc
Parents: 25ab34c
Author: jpoth <[hidden email]>
Authored: Thu Apr 20 19:14:00 2017 +0200
Committer: Claus Ibsen <[hidden email]>
Committed: Fri Apr 21 15:03:44 2017 +0200

----------------------------------------------------------------------
 examples/camel-example-rest-producer/pom.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3b5fb602/examples/camel-example-rest-producer/pom.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-rest-producer/pom.xml b/examples/camel-example-rest-producer/pom.xml
index 6954127..54d9327 100644
--- a/examples/camel-example-rest-producer/pom.xml
+++ b/examples/camel-example-rest-producer/pom.xml
@@ -124,4 +124,22 @@
     </plugins>
   </build>
 
+  <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>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[4/8] camel git commit: CAMEL-10141: skip opentracing tests on Java 9 until Byteman upgrade to 4.x

davsclaus-2
In reply to this post by davsclaus-2
CAMEL-10141: skip opentracing tests on Java 9 until Byteman upgrade to 4.x


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/61ed6e64
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/61ed6e64
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/61ed6e64

Branch: refs/heads/master
Commit: 61ed6e64b70bbdefe7d34c6ee6a149d15f2f233d
Parents: 3b5fb60
Author: jpoth <[hidden email]>
Authored: Fri Apr 21 12:11:45 2017 +0200
Committer: Claus Ibsen <[hidden email]>
Committed: Fri Apr 21 15:03:44 2017 +0200

----------------------------------------------------------------------
 components/camel-opentracing/pom.xml | 35 +++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/61ed6e64/components/camel-opentracing/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-opentracing/pom.xml b/components/camel-opentracing/pom.xml
index d296c02..eb2a785 100644
--- a/components/camel-opentracing/pom.xml
+++ b/components/camel-opentracing/pom.xml
@@ -169,4 +169,39 @@
     </plugins>
   </build>
 
+  <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>
+          <plugin>
+            <artifactId>maven-failsafe-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>run-integration-tests</id>
+                <goals>
+                  <goal>integration-test</goal>
+                </goals>
+                <configuration>
+                  <excludes>
+                    <!--TODO: https://github.com/opentracing-contrib/java-agent/issues/18-->
+                    <exclude>**/**.java</exclude>
+                  </excludes>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[5/8] camel git commit: CAMEL-10141: make camel-test tests pass on Java 9

davsclaus-2
In reply to this post by davsclaus-2
CAMEL-10141: make camel-test 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/25ab34c0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/25ab34c0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/25ab34c0

Branch: refs/heads/master
Commit: 25ab34c0ce828dc73c23c82234df05376ea61e85
Parents: ddf9853
Author: jpoth <[hidden email]>
Authored: Tue Apr 18 20:27:19 2017 +0200
Committer: Claus Ibsen <[hidden email]>
Committed: Fri Apr 21 15:03:44 2017 +0200

----------------------------------------------------------------------
 components/camel-test/pom.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/25ab34c0/components/camel-test/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-test/pom.xml b/components/camel-test/pom.xml
index 27572ce..d414b9b 100644
--- a/components/camel-test/pom.xml
+++ b/components/camel-test/pom.xml
@@ -68,4 +68,22 @@
 
     </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>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[6/8] camel git commit: CAMEL-10141: make camel-eip-documentation-enricher-maven-plugin tests pass on Java 9

davsclaus-2
In reply to this post by davsclaus-2
CAMEL-10141: make camel-eip-documentation-enricher-maven-plugin 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/2f1c1cc7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2f1c1cc7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2f1c1cc7

Branch: refs/heads/master
Commit: 2f1c1cc76ab2ae3a4590dc962df1426749287543
Parents: 61ed6e6
Author: jpoth <[hidden email]>
Authored: Fri Apr 21 12:13:55 2017 +0200
Committer: Claus Ibsen <[hidden email]>
Committed: Fri Apr 21 15:03:44 2017 +0200

----------------------------------------------------------------------
 .../pom.xml                                     | 25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2f1c1cc7/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
index 89a75a4..36ed543 100644
--- a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
+++ b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
@@ -172,4 +172,29 @@
     </pluginManagement>
   </build>
 
+  <profiles>
+    <profile>
+      <id>jdk9-build</id>
+      <activation>
+        <jdk>9</jdk>
+      </activation>
+      <dependencies>
+        <dependency>
+          <groupId>xalan</groupId>
+          <artifactId>xalan</artifactId>
+        </dependency>
+      </dependencies>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <argLine>--add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 </project>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[7/8] camel git commit: CAMEL-10141: make camel-spring-javaconfig tests pass on Java 9

davsclaus-2
In reply to this post by davsclaus-2
CAMEL-10141: make camel-spring-javaconfig 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/53e70d36
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/53e70d36
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/53e70d36

Branch: refs/heads/master
Commit: 53e70d36fc82f12021c3c247ebf32a0aaec6c30c
Parents: 6447df2
Author: jpoth <[hidden email]>
Authored: Fri Apr 21 14:47:48 2017 +0200
Committer: Claus Ibsen <[hidden email]>
Committed: Fri Apr 21 15:03:44 2017 +0200

----------------------------------------------------------------------
 components/camel-spring-javaconfig/pom.xml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/53e70d36/components/camel-spring-javaconfig/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-spring-javaconfig/pom.xml b/components/camel-spring-javaconfig/pom.xml
index ce09027..8b1d5d5 100644
--- a/components/camel-spring-javaconfig/pom.xml
+++ b/components/camel-spring-javaconfig/pom.xml
@@ -92,4 +92,23 @@
     </dependency>
   </dependencies>
 
+  <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.bind,java.xml.ws --add-opens java.base/java.lang=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime.reflect=ALL-UNNAMED</argLine>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[8/8] camel git commit: CAMEL-10141: make camel-testng tests pass on Java 9

davsclaus-2
In reply to this post by davsclaus-2
CAMEL-10141: make camel-testng 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/f092da98
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f092da98
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f092da98

Branch: refs/heads/master
Commit: f092da98e6dd6dba0e73d5663547578b184f2d5d
Parents: 2f1c1cc
Author: jpoth <[hidden email]>
Authored: Fri Apr 21 14:47:06 2017 +0200
Committer: Claus Ibsen <[hidden email]>
Committed: Fri Apr 21 15:03:44 2017 +0200

----------------------------------------------------------------------
 components/camel-testng/pom.xml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f092da98/components/camel-testng/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-testng/pom.xml b/components/camel-testng/pom.xml
index abacd5f..dc804ef 100644
--- a/components/camel-testng/pom.xml
+++ b/components/camel-testng/pom.xml
@@ -80,4 +80,23 @@
 
     </dependencies>
 
+    <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.bind,java.xml.ws --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>

Loading...