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(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at com.wfb.csts.maven.maven.MavenVersions.downloadArtifact(MavenVersions.java:276)

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);

artifactRequest.setRepositories(remoteRepositories);
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: Mon Dec 11 00:28:20 GMT 2017

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

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