Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScyJava does not pick up the correct dependencies #11

Closed
egonw opened this issue Jul 10, 2022 · 1 comment
Closed

ScyJava does not pick up the correct dependencies #11

egonw opened this issue Jul 10, 2022 · 1 comment
Assignees

Comments

@egonw
Copy link
Collaborator

egonw commented Jul 10, 2022

Eclipse had a dependency issue which they recently fixed, removing archives from Maven Central. Bacting 0.0.40 was updated, giving the fixed dependency tree:

[INFO] |  \- io.github.egonw.bacting:bioclipse-core:jar:2.8.0.16:compile
[INFO] |     +- org.eclipse.platform:org.eclipse.core.runtime:jar:3.25.0:compile
[INFO] |     |  +- org.eclipse.platform:org.eclipse.osgi:jar:3.18.0:compile (version selected from constraint [3.17.0,4.0.0))
[INFO] |     |  +- org.eclipse.platform:org.eclipse.equinox.common:jar:3.16.100:compile (version selected from constraint [3.16.0,))
[INFO] |     |  +- org.eclipse.platform:org.eclipse.core.jobs:jar:3.13.0:compile (version selected from constraint [3.13.0,4.0.0))
[INFO] |     |  +- org.eclipse.platform:org.eclipse.equinox.registry:jar:3.11.100:compile (version selected from constraint [3.11.0,4.0.0))
[INFO] |     |  +- org.eclipse.platform:org.eclipse.equinox.preferences:jar:3.10.1:compile (version selected from constraint [3.10.0,4.0.0))
[INFO] |     |  |  \- org.osgi:org.osgi.service.prefs:jar:1.1.2:compile (version selected from constraint [1.1.0,1.2.0))

Here, org.eclipse.platform:org.eclipse.equinox.preferences:jar:3.10.1 is the fixed library (see eclipse-equinox/equinox.bundles#54), but when installing pybacting it still depends on 3.10.0:

[Error: ] Failed to execute goal on project managers-inchi-BOOTSTRAPPER: Could not resolve dependencies for project 
io.github.egonw.bacting-BOOTSTRAPPER:managers-inchi-BOOTSTRAPPER:jar:0: Failed to collect dependencies at 
io.github.egonw.bacting:managers-inchi:jar:0.0.40 -> io.github.egonw.bacting:bacting-core:jar:0.0.40 -> 
io.github.egonw.bacting:bioclipse-core:jar:2.8.0.16 -> org.eclipse.platform:org.eclipse.core.runtime:jar:3.25.0 -> 
org.eclipse.platform:org.eclipse.equinox.preferences:jar:3.10.0 -> org.osgi.service:org.osgi.service.prefs:jar:[1.1.0,1.2.0):
No versions available for org.osgi.service:org.osgi.service.prefs:jar:[1.1.0,1.2.0) within specified range -> [Help 1]

Note how it does pick up org.eclipse.platform:org.eclipse.core.runtime:jar:3.25.0 but then is happy with the broken org.eclipse.platform:org.eclipse.equinox.preferences:jar:3.10.0 where version 3.10.1 should be used instead.

This leaves pybacting uninstallable for now. It is yet unclear how to fix this.

@egonw
Copy link
Collaborator Author

egonw commented Jul 13, 2022

Okay, this problem is fixed in Bacting 0.42. The solution there is to explicitly exclude the (non-versioned) org.eclipse.equinox.preferences from the org.eclipse.core.runtime dependency, and the include org.eclipse.equinox.preferences with version 3.10.1 instead. It's a unwelcome workaround, but works.

@egonw egonw closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant