Fixing dependency for JDK>=9
</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>
