Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Maven dependencies not existant anymore
Maven dependencies not existant anymore [message #1853033] Wed, 15 June 2022 13:43 Go to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
Since today (2022/06/15) the transitive dependencies of the Eclipse platform library

org.eclipse.platform:org.eclipse.core.runtime:3.17.100

are not found on Maven central anymore.

The error message is (in a Gradle build):

org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for org.osgi.service:org.osgi.service.prefs:[1.1.0,1.2.0) as no versions of org.osgi.service:org.osgi.service.prefs are available.
Searched in the following locations:
  - https://repo.maven.apache.org/maven2/org/osgi/service/org.osgi.service.prefs/maven-metadata.xml

Required by:
    project :core > org.eclipse.platform:org.eclipse.core.runtime:3.17.100 > org.eclipse.platform:org.eclipse.equinox.preferences:3.10.0


The link in Maven central changed from

https://repo.maven.apache.org/maven2/org/osgi/service/org.osgi.service.prefs/maven-metadata.xml

to

https://repo.maven.apache.org/maven2/org/osgi/org.osgi.service.prefs/maven-metadata.xml

The path part "service" is missing in the second URL.

Why was the original artifact removed?

And how to fix this?

Re: Maven dependencies not existant anymore [message #1853035 is a reply to message #1853033] Wed, 15 June 2022 13:55 Go to previous messageGo to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
A test pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>de.udo</groupId>
	<artifactId>test</artifactId>
	<version>0.0.1-SNAPSHOT</version>

	<dependencies>
		<dependency>
			<groupId>org.eclipse.platform</groupId>
			<artifactId>org.eclipse.core.runtime</artifactId>
			<version>3.17.100</version>
		</dependency>

	</dependencies>
</project>
Re: Maven dependencies not existant anymore [message #1853036 is a reply to message #1853035] Wed, 15 June 2022 13:57 Go to previous messageGo to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
And the error message in the console:

mvn verify
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------------------< de.udo:test >-----------------------------
[INFO] Building test 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.455 s
[INFO] Finished at: 2022-06-15T15:56:33+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project test: Could not resolve dependencies for project de.udo:test:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.eclipse.platform:org.eclipse.core.runtime:jar:
3.17.100 -> 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]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Re: Maven dependencies not existant anymore [message #1853037 is a reply to message #1853036] Wed, 15 June 2022 14:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
This issue is tracked here:

https://github.com/eclipse-equinox/equinox.bundles/issues/54


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Maven dependencies not existant anymore [message #1853038 is a reply to message #1853037] Wed, 15 June 2022 14:23 Go to previous message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
Ok, thanks. Then all comes because of version ranges... :(
Previous Topic:eclipse displaying IntelliJ icon
Next Topic:Need help pushing a bug fix to Gerrit
Goto Forum:
  


Current Time: Fri Apr 26 02:17:13 GMT 2024

Powered by FUDForum. Page generated in 0.03068 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top