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

martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva.git


The following commit(s) were added to refs/heads/master by this push:
     new b639d3e  Fixing dependency for JDK>=9
b639d3e is described below

commit b639d3ee50831b10b432d2d6f437aab3045fe581
Author: Martin Stockhammer <[email protected]>
AuthorDate: Sun Feb 10 15:36:08 2019 +0100

    Fixing dependency for JDK>=9
---
 .../archiva-base/archiva-proxy-maven/pom.xml       | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/archiva-modules/archiva-base/archiva-proxy-maven/pom.xml 
b/archiva-modules/archiva-base/archiva-proxy-maven/pom.xml
index 8feac8d..b4bc170 100644
--- a/archiva-modules/archiva-base/archiva-proxy-maven/pom.xml
+++ b/archiva-modules/archiva-base/archiva-proxy-maven/pom.xml
@@ -179,4 +179,26 @@
     </pluginManagement>
   </build>
 
+  <!--
+  The jaxb dependency is needed by the enunciate plugin starting with JDK9.
+  Adding to the plugin dependency is not sufficient, so I have to add it as 
project dependency.
+  Using provided scope to avoid adding it to packaging.
+  -->
+  <profiles>
+    <profile>
+      <id>jdk9+</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <dependencies>
+        <dependency>
+          <groupId>javax.xml.bind</groupId>
+          <artifactId>jaxb-api</artifactId>
+          <version>2.3.0</version>
+          <scope>provided</scope>
+        </dependency>
+      </dependencies>
+    </profile>
+  </profiles>
+
 </project>

Reply via email to