|Re: [tycho-user] Tycho build doesn't find package in module java.xml on Java 11|
I recently ran into the same issue and solved it by using jakarta.xml.bind. I added it from the 2020-12 update site.
<location includeMode="slicer" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
<unit id="jakarta.xml.bind" version="2.3.3.v20201118-1818"/>
You can also use the new Maven location type and get it directly from Maven Central. That also worked fine for me.
Not sure about the cause internally, but it looks like the exported version in javax.xml.bind is 2.2, but PDE tooling is making a 2.2.0 out of it. The jakarta.xml.bind seems to behave better in an OSGi environment and worked for me inside the IDE and in a Tycho build.
Mit freundlichen Grüßen / Best regards
Von: tycho-user <tycho-user-bounces@xxxxxxxxxxx> Im Auftrag von
That's a bug in the JavaSE-11.profile file used in Tycho missing this package (or better, declaring the packages while it's not realistically reliable).
Please file an issue about it.
Back to the top