-
Notifications
You must be signed in to change notification settings - Fork 16
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
Incorrect org.osgi.service.prefs
dependency in org.eclipse.equinox.preferences-3.10.0
#54
Comments
Thank you for your report. |
We have the same issue today, the whole CI pipeline is broken because the group Id isn't existed. The current workaround is creating the folder structure as same as the wrong group Id and throwing the jar to there. |
@sravanlakkimsetti You're the best person to help here. What/where/how generates the pom files deployed? |
i also wonder if we can create a new repo in eclipses nexus where some milestones or nightlies for these and also platform and jdt maven artifacts can be published. e.g. xtext could use these in their integ tests so that problems like this one are detected earlier |
Why a new repo? Is the existing one not sufficient?
The problem is that current maven deployment is a nasty script witch need manual execution... One the equinox repos are merged I plan to try setup a more automated flow for the equinox that could be used as a basis for other repos as well. |
when broken milestones are published to a release repo, then of course the "maven central" is broken problem would turn into the "eclipse release repo is broken" |
At least in tycho, staging or milestone repos has been proven to produce more hassle than they solve. If we publish something "broken" we simply should fix that and publish a new version immediately. |
repo.eclipse.org can be used to deploy SNAPSHOT versions and only builds that explicitly enable it will use them. We do that with Tycho and it works well sothere is no need for new repo. |
I am trying a solution for this one. It will take some time. but hopefully by today or tomorrow I will be able to fix this one |
firstly maybe you should remove the version 3.10.0 from repository,stop to effect the more users |
Can you actually remove things from Maven Central? I thought this is a not allowed. |
https://stackoverflow.com/questions/9789611/removing-an-artifact-from-maven-central You can only contact the support, but as no one is forced to upgrade their pom, you can simply use the old version in the meanwhile... |
I have a transitive dependency on this library and the version I used for the main library is fixed. However, the dependency specifies a range of allowed version and the latest will be used. So I was forced to add a gradle dependency constraint
|
I also have a transitive dependency which is bringing this version in. |
org.eclipse.equinox.preferences-3.10.0 eclipse-equinox#54 Tracked in eclipse-equinox#54
Well that's what these features are for... you probably then should better blame the dependency specifying a version range without actually testing that the range is satiable... |
org.eclipse.equinox.preferences-3.10.0 eclipse-equinox#54 Tracked in eclipse-equinox#54
So Do We !! |
@laeubi all of eclipse platform and also emf have "ranges of death"
this leads to always new transitive stuff beeing pulled |
but the whole maven thing is broken right now due to equinox components badly deployed in 2022/06 eclipse simrel (see eclipse-equinox/equinox.bundles#54 among others)
I hope you will be able to quickly release a fixed version. Thanks for all the open-source effort! You can patch your local .m2 cache with the following command (bash):
downside: it only works until you clean your .m2 cache! (but you can redo it or even script it) ...and yes, if you have a zillion machines around it is not very practical to do it by hand... but you can script it... or make a cron job 😆 be creative! |
The fixed version was already released yesterday @tombrus |
I will note that whatever code is generating the maven version range is generating a too-broad range. In the above example, the range includes |
the offending artifacts have been removed from maven central. Please try now |
Now I have the following error: |
Java SE 11 = class file version 55 . o.e.core.runtime bundle requires it since September 2021 release eclipse-platform/eclipse.platform.runtime@74823fe |
Why this error didn't appear before the artifact's fix? |
@adebiasi can you provide a minimal reproducer |
This I can not even try to answer without reproducer and/or link to logs. Also please move to new issue for that. |
I created #61. |
Platform requires java 11, so actually there is no "issue" and you probably have not seen it before because now the dependency has changed, the build was adjusted, using never java features of changed BREE, ... If you require "old" behavior you have to use the old release... |
Can you let remove the wrong version also from JCenter: On maven central it's already removed. |
Someone added a dependency on a non-existing artifact in the new Equinox release and now many builds are broken because Xtext defines a version range for Equinox 😞, see: * eclipse-equinox/equinox.bundles#54 * eclipse-xtext/xtext#2077 Signed-off-by: Wouter Born <[email protected]> GitOrigin-RevId: af0566a
The declaration for the
org.osgi.service.prefs
dependency inside https://repo1.maven.org/maven2/org/eclipse/platform/org.eclipse.equinox.preferences/3.10.0/org.eclipse.equinox.preferences-3.10.0.pomis wrong. Instead of being:
as it currently is, it should be
(basically, the
<groupId>
is wrong)as can be seen on Maven Central: https://search.maven.org/artifact/org.osgi/org.osgi.service.prefs/1.1.2/jar
Otherwise, I get a
error. If I patch the POM file in my local maven cache, this problem is resolved and the dependency downloads as expected.
The text was updated successfully, but these errors were encountered: