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

Version ranges for dependencies in Maven artifacts break existing builds #37

Closed
kenwenzel opened this issue Jun 16, 2022 · 2 comments
Closed

Comments

@kenwenzel
Copy link

We consume the platform bundles via Maven Central. The automatically generated Maven POMs use version ranges to reference dependencies.
An example can be found here:
https://search.maven.org/artifact/org.eclipse.platform/org.eclipse.core.runtime/3.12.0/jar

Those version ranges lead to the behavior that new Maven artifacts are immediately picked up if they become available on Central.
If such an artifact is invalid (as is the case with org.eclipse.platform:org.eclipse.equinox.preferences:jar:3.10.0) then all Maven builds are directly broken that depend on some of the root artifacts:

Failed to collect dependencies at org.eclipse.platform:org.eclipse.e4.ui.workbench.swt:jar:0.16.100 -> 
org.eclipse.platform:org.eclipse.e4.ui.workbench:jar:1.4.0 -> 
org.eclipse.platform:org.eclipse.e4.ui.model.workbench:jar:1.2.0 -> 
org.eclipse.platform:org.eclipse.core.runtime:jar:3.12.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]

I would suggest that the Maven POMs only reference fixed versions and, if this is possible, the published artifacts are somehow validated before publishing them to Central.

@kenwenzel
Copy link
Author

CC @mfriedemann

@akurtakov
Copy link
Member

Duplicate of eclipse-equinox/equinox.bundles#54

laeubi pushed a commit to laeubi/eclipse.platform that referenced this issue Aug 12, 2022
JavaJoeS pushed a commit to JavaJoeS/eclipse.platform that referenced this issue Jan 29, 2024
Contained links to outdated bugtracker, old git.
Instead the files from the common .github repository 
https://github.com/eclipse-platform/.github
should be shown.
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

2 participants