ARTEMIS-1449 Add the classes JRE 11 will remove as explicit dependencies

Since the classes in question are marked for removal, using the
``--add-modules java.xml.bind` JVM option would be only a temporary
solution. Pulling them as dependencies from repo1.maven.org and
distributing them with Artemis should be more permanent one.
This commit is contained in:
Jiri Danek 2018-05-01 08:15:51 +02:00 committed by Clebert Suconic
parent d5be6111e5
commit 94c34b7ed9
2 changed files with 30 additions and 22 deletions

View File

@ -99,6 +99,10 @@
<include>org.apache.geronimo.specs:geronimo-json_1.0_spec</include>
<include>org.apache.johnzon:johnzon-core</include>
<include>org.hdrhistogram:HdrHistogram</include>
<include>javax.xml.bind:jaxb-api</include>
<include>com.sun.xml.bind:jaxb-impl</include>
<include>com.sun.xml.bind:jaxb-core</include>
<include>javax.activation:activation</include>
</includes>
<!--excludes>
<exclude>org.apache.activemq:artemis-website</exclude>

View File

@ -28,6 +28,9 @@
<name>ActiveMQ Artemis DTO</name>
<properties>
<version.activation>1.1.1</version.activation>
<version.jaxb>2.2.7</version.jaxb>
<activemq.basedir>${project.basedir}/..</activemq.basedir>
</properties>
@ -37,6 +40,26 @@
<artifactId>artemis-commons</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${version.jaxb}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${version.jaxb}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-jxc</artifactId>
<version>${version.jaxb}</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>${version.activation}</version>
</dependency>
</dependencies>
<build>
@ -90,17 +113,17 @@
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.7</version>
<version>${version.jaxb}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.2.7</version>
<version>${version.jaxb}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-jxc</artifactId>
<version>2.2.7</version>
<version>${version.jaxb}</version>
</dependency>
</dependencies>
</plugin>
@ -137,25 +160,6 @@
</build>
<profiles>
<profile>
<id>jdk-1.5</id>
<activation>
<jdk>1.5</jdk>
</activation>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb-api-version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jaxb-version}</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>ibmjdk</id>
<activation>