Hi,
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"/>
<repository location="https://download.eclipse.org/releases/2020-12"/>
</location>
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
Dirk Fauth
Cross-Domain Computing Solutions, Cross Automotive Platforms - System, Software and Tools Engineering Engineering Software Methods and Tools1 (XC-ECO/ESM1)
Robert Bosch GmbH | Postfach 30 02 40 | 70442 Stuttgart |
GERMANY | www.bosch.com
Tel. +49 711 811-57819 | Telefax +49 711 811 |
Dirk.Fauth@xxxxxxxxxxxx
Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000;
Aufsichtsratsvorsitzender: Franz Fehrenbach; Geschäftsführung: Dr. Volkmar Denner,
Prof. Dr. Stefan Asenkerschbaumer, Filiz Albrecht, Dr. Michael Bolle, Dr. Christian Fischer,
Dr. Stefan Hartung, Dr. Markus Heyn, Harald Kröger, Rolf Najork, Uwe Raschke
Von: tycho-user <tycho-user-bounces@xxxxxxxxxxx> Im Auftrag von
Mickael Istria
Gesendet: Dienstag, 23. Februar 2021 13:00
An: Tycho user list <tycho-user@xxxxxxxxxxx>
Betreff: Re: [tycho-user] Tycho build doesn't find package in module java.xml on Java 11
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.