GeezerVison is showing github.com — Make javax.xml.bind resolution optional in core jar manifest · Issue #300 · xmlunit/xmlunit
Make javax.xml.bind resolution optional in core jar manifest #300DescriptionWe'd like to use XMLUnit 2, but we're in an OSGi environment. That means that the OSGi metadata ("Import-Package" in the manifest of the core jar) will pull in all the old javax.xml.bind packages – but we already use the current jakarta namespace packages.
Unfortunately, this is a show-stopper for us that keeps us from using XMLUnit.
Any chance the javax.xml.bind resolution can be made optional als described in #227 (comment) ?
Thanks 😊 Activitybodewig commented on Jun 15, 2025 A fair description of my OSGi knowledge would be that I learn enough to fix a problem every three or four years and then forget everything I've learned in an instant after the problem is resolved.
The comment you link to doesn't really say what I'm supposed to change. IIUC it suggests I make all imports in all modules optional, which seems to be way more than what we actually need.
If you or anybody else knows how I make the import of the javax.xml.bind in the core module optional without affecting any other imports, I'll be happy to change the setup. bodewig commented on Jun 15, 2025 I've opened #301 and will publish SNAPSHOT builds soon. This creates a MANIFEST including
Import-Package: javax.xml.bind;resolution=optional,javax.xml.bind.annota
tion;resolution=optional,javax.xml.bind.util;resolution=optional,javax.
xml.namespace,javax.xml.parsers,javax.xml.transform,javax.xml.transform
.dom,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.valid
ation,javax.xml.xpath,org.w3c.dom,org.xml.sax,org.xml.sax.helpers
which may or may not work. I haven't got any easy way to verify this actually does what it is supposed to do for OSGi users. bodewig commented on Jun 15, 2025 thmuch commented on Jun 17, 2025 Reacted by Stefan Bodewig bodewig commented on Jun 19, 2025 bodewig commented on Jun 19, 2025 release 2.10.3 is on its way to Maven Central, should show up soonish.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|