You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by ff...@apache.org on 2017/10/23 12:01:08 UTC
[karaf] branch master updated: [KARAF-5396]enhance so that don't
need have "--add-modules java.xml.bind" in MAVEN_OPTS when run with java9
This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/master by this push:
new 807c020 [KARAF-5396]enhance so that don't need have "--add-modules java.xml.bind" in MAVEN_OPTS when run with java9
807c020 is described below
commit 807c020463e679f288851836f420a8b0b6e88c53
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Mon Oct 23 20:00:58 2017 +0800
[KARAF-5396]enhance so that don't need have "--add-modules java.xml.bind" in MAVEN_OPTS when run with java9
---
pom.xml | 2 +-
tooling/karaf-maven-plugin/pom.xml | 57 +++++++++++++++++++++++++++++++++++++-
2 files changed, 57 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 91dec7f..0e5d3d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,7 @@
<cglib2.version>2.2.0</cglib2.version>
<jna.version>4.4.0</jna.version>
-
+ <jaxb.version>2.2.11</jaxb.version>
<commons-beanutils.version>1.9.2</commons-beanutils.version>
<commons-codec.version>1.10</commons-codec.version>
<commons-compress.version>1.14</commons-compress.version>
diff --git a/tooling/karaf-maven-plugin/pom.xml b/tooling/karaf-maven-plugin/pom.xml
index 974c32e..fc91e9b 100644
--- a/tooling/karaf-maven-plugin/pom.xml
+++ b/tooling/karaf-maven-plugin/pom.xml
@@ -295,6 +295,7 @@
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
+ <version>3.5</version>
<executions>
<execution>
<id>default-descriptor</id>
@@ -389,10 +390,64 @@
<asm.version>6.0_BETA</asm.version>
<mvn.opts>--add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-modules java.activation,java.xml.ws.annotation,java.corba,java.transaction,java.xml.bind,java.xml.ws -Djava.io.tmpdir=${project.build.directory}</mvn.opts>
</properties>
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-core</artifactId>
+ <version>${jaxb.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.glassfish.jaxb</groupId>
+ <artifactId>jaxb-core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.glassfish.jaxb</groupId>
+ <artifactId>txw2</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <version>${jaxb.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jsr173_api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.xml</groupId>
+ <artifactId>jsr173</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>activation</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
<activation>
<jdk>9</jdk>
</activation>
- </profile>
+ </profile>
<profile>
<id>skiptests</id>
<properties>
--
To stop receiving notification emails like this one, please contact
['"commits@karaf.apache.org" <co...@karaf.apache.org>'].