You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/02/17 22:01:16 UTC
[maven-changelog-plugin] branch master updated: Use profile to
include javax.xml.bind:jaxb-api for Java 9+
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-changelog-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 8ed4c68 Use profile to include javax.xml.bind:jaxb-api for Java 9+
8ed4c68 is described below
commit 8ed4c683cb0aa5438dad538741c9a9a0fc98b93c
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Feb 17 22:51:05 2020 +0100
Use profile to include javax.xml.bind:jaxb-api for Java 9+
- back to testing with newer java versions
---
Jenkinsfile | 2 +-
pom.xml | 42 +++++++++++++++++++++++++++++++++++-------
2 files changed, 36 insertions(+), 8 deletions(-)
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 @@ under the License.
<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 @@ under the License.
</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>