eclipse-tycho / tycho

Tycho project repository (tycho)
https://tycho.eclipseprojects.io
Eclipse Public License 2.0
166 stars 189 forks source link

Unable to satisfy dependency from org.osgi.framework 1.8.0 #4203

Open mikerumpf opened 2 weeks ago

mikerumpf commented 2 weeks ago

While building our application with tycho 4.0.8/Java 17 the following warning is printed while building a plugin:

[INFO] ---------------------------[ eclipse-plugin ]--------------------------- [WARNING] Problems resolving provisioning plan.: Unable to satisfy dependency from org.osgi.framework 1.8.0.201505202023 to java.package; javax.security.auth.x500 [1.3.0,2.0.0).

While it doesn't do any visible damage it's a little strange since we don't use org.osgi.framework 1.8.0 in our target platform and it isn't defined in the parent pom either. So I wonder where it is coming from. I guess it's some transitive dependency but as of now I was unable to find out the root. Any ideas?

laeubi commented 1 week ago

This can happen if something (optionally / indirectly) depends on it but finally is not chosen, then the P2 slicer warns about it but in the planner phase it decides the requirement is actually not used.

a little strange since we don't use org.osgi.framework 1.8.0 in our target platform and it isn't defined in the parent pom either

Maybe you building with local build artifacts enabled and its in your local maven repository?