Use profile to include javax.xml.bind:jaxb-api for Java 9+
- back to testing with newer java versions
diff --git a/Jenkinsfile b/Jenkinsfile
index a549506..e9f05f7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,4 +17,4 @@
* under the License.
*/
-asfMavenTlpPlgnBuild(jdk:['7','8','11'])
+asfMavenTlpPlgnBuild()
diff --git a/pom.xml b/pom.xml
index 2f18115..a60ed7a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -298,13 +298,6 @@
<version>3.0.24</version>
</dependency>
- <!-- misc -->
- <dependency>
- <groupId>xml-apis</groupId>
- <artifactId>xml-apis</artifactId>
- <version>1.0.b2</version>
- </dependency>
-
<!-- test dependencies -->
<dependency>
<groupId>junit</groupId>
@@ -386,5 +379,40 @@
</reporting>
</profile>
+ <profile>
+ <id>jdk9</id>
+ <activation>
+ <jdk>[9,)</jdk>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-bytecode-version</id>
+ <configuration>
+ <rules>
+ <enforceBytecodeVersion>
+ <excludes>
+ <exclude>javax.xml.bind:jaxb-api</exclude>
+ </excludes>
+ </enforceBytecodeVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.3.1</version>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
</project>