Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] [tycho-dev] migrating from Tycho 1.7 to 2.3

Have you tried enabling the log output? Do you see some warnings?
In youf case, Tycho is using the JavaSE-1.8 to resolve dependencies (using the JavaSE-1.8.profile built-in) so it doesn't add the javax.xml* bundles to build path, but then use a newer Java version to compile, that doesn't have this packages. Basically, it's not using your toolchain.
See http://www.eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#useJDK , building against another JDK requires to set `useJDK=BREE` and to define the associated JDK in toolchains.xml.

On Mon, Jul 5, 2021 at 10:10 PM Guillaume Dufour <guillaume.duff@xxxxxxxxx> wrote:
I read this many times but sorry don't fully understand what is expected.
So I try a new commit but it's still fail with it.


With exactly the same error:
[ERROR] The import javax.xml.bind cannot be resolved

even if I:
- import the package in the manifest,
- declare the executionEnvironment in the target (repository)
- set requireJREPackageImports to true

really sorry to don't understand


On Mon, Jul 5, 2021 at 5:45 PM Mickael Istria <mistria@xxxxxxxxxx> wrote:
Hi,

Basically, the BREE is only used to set the source/compile level in the compiler and isn't used to set the target-platform/library level. For such package that have been removed from a java version to the other, you should make sure those packages are imported in MANIFEST.MF. Against Java 8, they'll resolve to the package in the execution environment; against Java 11, they'll resolve to the javax.xml bundles.
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-dev
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-dev


--
Mickael Istria
Eclipse IDE developer, for Red Hat Developers

Back to the top