Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact in repository(while we are able to get the artifact version as expected, we are not able to download the artifact)
org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact in repository [message #1774898] Fri, 20 October 2017 22:37
Ram Vad is currently offline Ram VadFriend
Messages: 1
Registered: October 2017
Junior Member
when trying to resolve artifact from maven repository , we are getting the following exception. But trying to get version of the artifact works fine.

org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact xxxxxxx in repository XXXXX

at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(
at com.wfb.csts.maven.maven.MavenVersions.downloadArtifact(

we are doing something like below

DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();
session.setLocalRepositoryManager(repositorySystem.newLocalRepositoryManager(session, localRepo));
Artifact artifact = new DefaultArtifact(groupId, artifactId, null, null, versionSpec);

ArtifactRequest artifactRequest = new ArtifactRequest(artifact,remoteRepositories,null);

ArtifactResult artifactResult = repositorySystem.resolveArtifact( session, artifactRequest );
artifact = artifactResult.getArtifact();
Previous Topic:Empty toolbar descriptions
Next Topic:Eclipse Neon autocomplete system sucks. How to disable it?
Goto Forum:

Current Time: Thu Nov 15 22:01:15 GMT 2018

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

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

Back to the top