You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/03/14 17:28:15 UTC

[5/6] camel git commit: CAMEL-10141: make camel-sql unit tests pass on Java 9

CAMEL-10141: make camel-sql 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/19011076
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/19011076
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/19011076

Branch: refs/heads/master
Commit: 19011076aab5789e6ebb54033eb6c9cef9e843f1
Parents: 16a6244
Author: jpoth <po...@gmail.com>
Authored: Tue Mar 14 16:17:35 2017 +0100
Committer: jpoth <po...@gmail.com>
Committed: Tue Mar 14 17:49:05 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/camel/blob/19011076/components/camel-sql/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-sql/pom.xml b/components/camel-sql/pom.xml
index afe68da..058dee4 100644
--- a/components/camel-sql/pom.xml
+++ b/components/camel-sql/pom.xml
@@ -136,4 +136,25 @@
     </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.sql,java.xml.bind --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED</argLine>
+              <!--https://issues.apache.org/jira/browse/SUREFIRE-1265 -->
+              <reuseForks>true</reuseForks>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>