aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-02-10 15:36:08 +0100
committerMartin Stockhammer <martin_s@apache.org>2019-02-10 15:36:08 +0100
commitb639d3ee50831b10b432d2d6f437aab3045fe581 (patch)
treee70663a8114bb4ad0e13d59788c0a0f1920314ce
parent7a0e81d5156822c0e1b1a5b954be8f7f0199b2a3 (diff)
downloadarchiva-b639d3ee50831b10b432d2d6f437aab3045fe581.tar.gz
archiva-b639d3ee50831b10b432d2d6f437aab3045fe581.zip
Fixing dependency for JDK>=9
-rw-r--r--archiva-modules/archiva-base/archiva-proxy-maven/pom.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy-maven/pom.xml b/archiva-modules/archiva-base/archiva-proxy-maven/pom.xml
index 8feac8d28..b4bc170fc 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>