Skip to content

Commit 68cac23

Browse files
authored
Merge pull request #301 from xmlunit/java-jaxb-optional-osgi
make javax.xml.bind.* OSGi imports optional
2 parents 79414ea + bee0837 commit 68cac23

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## XMLUnit for Java 2.10.3 - /not released, yet/
44

5+
* marked OSGi `Import-Package` optional for javax.xml.bind packages in xmlunit-core.
6+
Also fixed the `Export-Package` header of the legacy module.
7+
Issue [#300](https://github.com/xmlunit/xmlunit/issues/300)
8+
PR [#301](https://github.com/xmlunit/xmlunit/pull/301)
9+
510
## XMLUnit for Java 2.10.2 - /Released 2025-05-23/
611

712
* the published POM of xmlunit-legacy lacked the dependency on xmlunit-core.

xmlunit-core/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@
5555
</dependency>
5656
</dependencies>
5757

58+
<build>
59+
<plugins>
60+
<plugin>
61+
<groupId>org.apache.felix</groupId>
62+
<artifactId>maven-bundle-plugin</artifactId>
63+
<configuration>
64+
<instructions>
65+
<Import-Package>javax.xml.bind.*;resolution:=optional,*</Import-Package>
66+
</instructions>
67+
</configuration>
68+
</plugin>
69+
</plugins>
70+
</build>
71+
5872
<profiles>
5973
<profile>
6074
<id>java9+</id>

xmlunit-legacy/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@
9696
</execution>
9797
</executions>
9898
</plugin>
99+
<plugin>
100+
<groupId>org.apache.felix</groupId>
101+
<artifactId>maven-bundle-plugin</artifactId>
102+
<configuration>
103+
<instructions>
104+
<Export-Package>org.custommonkey.xmlunit.*;version=${project.version};-noimport:=true</Export-Package>
105+
</instructions>
106+
</configuration>
107+
</plugin>
99108
</plugins>
100109
</build>
101110
</project>

0 commit comments

Comments
 (0)