You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2019/12/17 09:49:55 UTC

[camel-spring-boot] branch master updated: Support builds on JDK >= 9

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/master by this push:
     new dc80a09  Support builds on JDK >= 9
dc80a09 is described below

commit dc80a098747d5a499bb7a363d2d8c8324641756d
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Dec 17 10:49:42 2019 +0100

    Support builds on JDK >= 9
---
 pom.xml | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 124 insertions(+)

diff --git a/pom.xml b/pom.xml
index b9eed1a..2bd3c50 100644
--- a/pom.xml
+++ b/pom.xml
@@ -186,6 +186,9 @@
         <spring-cloud-netflix-version>2.2.0.RELEASE</spring-cloud-netflix-version>
         <spring-cloud-zookeeper-version>2.2.0.RELEASE</spring-cloud-zookeeper-version>
         <rxjava-version>1.3.8</rxjava-version>
+        <geronimo-ws-metadata-spec-version>1.1.3</geronimo-ws-metadata-spec-version>
+        <glassfish-jaxb-runtime-version>${jakarta-jaxb-version}</glassfish-jaxb-runtime-version>
+
 
         <arquillian-container-se-managed-version>1.0.2.Final</arquillian-container-se-managed-version>
         <arquillian-version>1.5.0.Final</arquillian-version>
@@ -757,6 +760,127 @@
         </profile>
 
         <profile>
+            <id>jdk9+-build</id>
+            <activation>
+                <jdk>[9,)</jdk>
+            </activation>
+            <properties>
+                <cxf.codegenplugin.forkmode>true</cxf.codegenplugin.forkmode>
+            </properties>
+            <build>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.codehaus.mojo</groupId>
+                            <artifactId>jaxb2-maven-plugin</artifactId>
+                            <dependencies>
+                                <dependency>
+                                    <groupId>jakarta.xml.bind</groupId>
+                                    <artifactId>jakarta.xml.bind-api</artifactId>
+                                    <version>${jakarta-jaxb-version}</version>
+                                </dependency>
+                            </dependencies>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.camel</groupId>
+                            <artifactId>camel-package-maven-plugin</artifactId>
+                            <dependencies>
+                                <dependency>
+                                    <groupId>jakarta.xml.bind</groupId>
+                                    <artifactId>jakarta.xml.bind-api</artifactId>
+                                    <version>${jakarta-jaxb-version}</version>
+                                </dependency>
+                            </dependencies>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-compiler-plugin</artifactId>
+                            <version>${maven-compiler-plugin-version}</version>
+                            <configuration>
+                                <source>${jdk.version}</source>
+                                <target>${jdk.version}</target>
+                                <maxmem>512M</maxmem>
+                                <fork>true</fork>
+                                <showDeprecation>true</showDeprecation>
+                                <showWarnings>true</showWarnings>
+                            </configuration>
+                        </plugin>
+                        <plugin>
+                            <artifactId>maven-surefire-plugin</artifactId>
+                            <!--lets avoid polluting every pom.xml as these settings are almost always needed-->
+                            <configuration>
+                                <argLine>${camel.surefire.fork.vmargs}</argLine>
+                            </configuration>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>javax.annotation</groupId>
+                    <artifactId>javax.annotation-api</artifactId>
+                    <version>${javax-annotation-api-version}</version>
+                </dependency>
+                <dependency>
+                    <groupId>javax.xml.ws</groupId>
+                    <artifactId>jaxws-api</artifactId>
+                    <version>2.3.0</version>
+                    <exclusions>
+                        <exclusion>
+                            <groupId>javax.xml.bind</groupId>
+                            <artifactId>jaxb-api</artifactId>
+                        </exclusion>
+                    </exclusions>
+                </dependency>
+                <dependency>
+                    <groupId>jakarta.xml.bind</groupId>
+                    <artifactId>jakarta.xml.bind-api</artifactId>
+                    <version>${jakarta-jaxb-version}</version>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
+                    <version>${geronimo-ws-metadata-spec-version}</version>
+                </dependency>
+                <dependency>
+                    <groupId>com.sun.xml.messaging.saaj</groupId>
+                    <artifactId>saaj-impl</artifactId>
+                    <version>1.3.28</version>
+                    <exclusions>
+                        <exclusion>
+                            <groupId>javax.xml.soap</groupId>
+                            <artifactId>javax.xml.soap-api</artifactId>
+                        </exclusion>
+                        <exclusion>
+                            <!--Get dependency from jaxb-runtime-->
+                            <groupId>org.jvnet.staxex</groupId>
+                            <artifactId>stax-ex</artifactId>
+                        </exclusion>
+                    </exclusions>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-jta_1.1_spec</artifactId>
+                </dependency>
+                <dependency>
+                    <groupId>org.jboss.spec.javax.rmi</groupId>
+                    <artifactId>jboss-rmi-api_1.0_spec</artifactId>
+                    <version>1.0.6.Final</version>
+                </dependency>
+                <dependency>
+                    <groupId>org.glassfish.jaxb</groupId>
+                    <artifactId>jaxb-runtime</artifactId>
+                    <version>${glassfish-jaxb-runtime-version}</version>
+                </dependency>
+                <dependency>
+                    <groupId>javax.xml.soap</groupId>
+                    <artifactId>javax.xml.soap-api</artifactId>
+                    <version>1.4.0</version>
+                </dependency>
+            </dependencies>
+        </profile>
+
+        <profile>
             <id>deploy</id>
             <build>
                 <defaultGoal>deploy</defaultGoal>