Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho build doesn't find package in module java.xml on Java 11
  • From: "Fauth Dirk (XC-ECO/ESM1)" <Dirk.Fauth@xxxxxxxxxxxx>
  • Date: Tue, 23 Feb 2021 12:02:41 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+99XHuX9Li+Swz7Lw2wgFvVmIPR3XK7hB+s/dFSLbM4=; b=hL2uPbYlfjJWDXRUHkTRMD3sHwREoy6g145XHPzQ+GiZUpoNz/+iVtuaiFa+/I16YAMEIxxc0rwWdHXRx0xsJAeQSg0j/BURO6h2tMULIfBcxzfjHp1dDP46hlpkcDjfKS1OJHBRZBXVBFHDl4JQYU2OkRIKh8BE6XLWL8iGKvHUavD/DOANgnM7MrXi47xAwKgjPFJNkHqRErv4cT6QCpp7TLyHoISykxroas5Y0H7rBwdXbS491XPRCkU/TrAMq+UNs0QIL+CHM8s8QTJw7AiyoCH144OIQyiKysik8Kkgw/wV72mlsQiC/VgTuwfqbhF2eG/AlY82Uv17LJNP0g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=nKwA2qWNeC24Y+NNA1g64NpLY3PhBjnTbzLbNTOlgmOtEdZ5Lq0Zq/bfhslVafU7HkW0PHfT8ZuHN/Yt3oqH3g42ojIjS4DvkMWaCJTTvlULYHOTCpzKW+fsITcc8OAcWmRdCp+F9XB7p7eeYbLo6o/HX88PEiXIDQ+vBJsIx/AgOV6iXGtRPHnHUsNUXYNw4R0U0N0XifHvRmbjVcbEMrU3ovcpfyff1VsrMxx1UpYsyKd0DZT36p6Hoq80vQgDvN4M+7VrbdPkV1bmx+zpEp3uSfHMHnNbk0rGaKeEb4u0l/2R/T0yZmZqAeWLOUZMO58MK/ur28/NWE9i9/GQzQ==
  • Delivered-to: tycho-user@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: AQHXCdJUKdQGrTaq/UufyXacgqpxn6plo0aAgAAAUUA=
  • Thread-topic: [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"/>

      <repository 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 |
+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.

Back to the top