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

Thanks mickael,

I add useJDK=BREE without better result (i already test it but not push the commit) but without more success.

Here is the list of my warnings:
[WARNING] Bundle-ClassPath entry runtime_registry_compatibility.jar does not exist in C:\Users\gdufour\.m2\repository\p2\osgi\bundle\org.eclipse.equinox.registry\3.6.0.v20150318-1503\org.eclipse.equinox.registry-3.6.0.v20150318-1503.jar
[WARNING] Bundle-ClassPath entry injection_annotations.jar does not exist in C:\Users\gdufour\.m2\repository\p2\osgi\bundle\org.eclipse.e4.core.services\2.0.0.v20150403-1912\org.eclipse.e4.core.services-2.0.0.v20150403-1912.jar
[WARNING] Bundle-ClassPath entry runtime_registry_compatibility.jar does not exist in C:\Users\gdufour\.m2\repository\p2\osgi\bundle\org.eclipse.equinox.registry\3.6.0.v20150318-1503\org.eclipse.equinox.registry-3.6.0.v20150318-1503.jar
[WARNING] Bundle-ClassPath entry icu-data.jar does not exist in C:\Users\gdufour\.m2\repository\p2\osgi\bundle\com.ibm.icu\54.1.1.v201501272100\com.ibm.icu-54.1.1.v201501272100.jar
[WARNING] Bundle-ClassPath entry injection_annotations.jar does not exist in C:\Users\gdufour\.m2\repository\p2\osgi\bundle\org.eclipse.e4.core.services\2.0.0.v20150403-1912\org.eclipse.e4.core.services-2.0.0.v20150403-1912.jar


[WARNING] Parameter 'useProjectSettings' is set to true, but preferences file 'C:\Users\gdufour\git\github\eclipse\tycho-demo\itp04-rcp\example-bundle\.settings\org.eclipse.jdt.core.prefs' could not be found!

Toolchain seems found:
[INFO] --- maven-toolchains-plugin:3.0.0:toolchain (default) @ parent ---
[INFO] Required toolchain: jdk [ version='1.8' ]
[INFO] Found matching toolchain for type jdk: JDK[C:\Program Files\Java\jdk1.8.0_181]

With -X
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Users\gdufour\Application\apache-maven-3.6.3
Java version: 11.0.8, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.8
....
I found later in the log
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.eclipse.tycho:tycho-p2-plugin:2.3.0:update-local-index (default-update-local-index)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <project>${project}</project>
</configuration>
[DEBUG] =======================================================================
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=30000, ConflictMarker.markTime=26100, ConflictMarker.nodeCount=62, ConflictIdSorter.graphTime=7800, ConflictIdSorter.topsortTime=20900, ConflictIdSorter.conflictIdCount=61, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2721800, ConflictResolver.conflictItemCount=61, DefaultDependencyCollector.collectTime=704500, DefaultDependencyCollector.transformTime=2867100}
[DEBUG] example.group:example-bundle:eclipse-plugin:0.1.0-SNAPSHOT
[DEBUG]    p2.eclipse-plugin:javax.xml:jar:1.3.4.v201005080400:system

But I think we need a javax.xml.bind, and not only the javax.xml. But javax.xml.bind is inside my target, the package is imported but it's seems not enough.




On Mon, Jul 5, 2021 at 10:26 PM Mickael Istria <mistria@xxxxxxxxxx> wrote:
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
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user

Back to the top