diff options
-rw-r--r-- | archiva-modules/archiva-base/archiva-proxy-maven/pom.xml | 22 |
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> |