Skip to content

Commit

Permalink
Merge pull request #908 from andymc12/master
Browse files Browse the repository at this point in the history
[#907] Make XML Bind pkgs optional for JPMS/OSGi
  • Loading branch information
andymc12 authored Sep 23, 2020
2 parents 39192c3 + d973660 commit 3c4941b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions jaxrs-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-opens jakarta.ws.rs/jakarta.ws.rs.core=java.xml.bind</argLine>
<argLine>--add-modules jakarta.xml.bind</argLine>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -183,7 +183,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-opens jakarta.ws.rs/jakarta.ws.rs.core=java.xml.bind</argLine>
<argLine>--add-modules jakarta.xml.bind</argLine>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -497,6 +497,7 @@
<artifactId>jakarta.xml.bind-api</artifactId>
<version>${jaxb.api.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
Expand Down
4 changes: 2 additions & 2 deletions jaxrs-api/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand All @@ -16,7 +16,7 @@

module jakarta.ws.rs {

requires transitive jakarta.xml.bind;
requires static jakarta.xml.bind;

requires java.logging;

Expand Down

0 comments on commit 3c4941b

Please sign in to comment.