Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] AETHER - Failed to read artifact descriptor

There is something bad in Nexus 1.9.2-RC3: although from a Maven POV, it is a release, it has a dependency on a -SNAPSHOT artifact thus it's likely the default Aether conf cannot resolve such an artifact.

Regards
Jeff

On Sat, Apr 25, 2015 at 10:50 PM, <e92-330cd@xxxxxxxxx> wrote:
Hello,

Why I am getting this exception please? I mean i know why...but Aether cant solve it somehow?

I tried to get Direct dependencies for artifact: org.sonatype.nexus:nexus-api:1.9.2-RC3 

so the only thing what I could do ..is just ignore the missing jar/pom file in central repo and ignore the exception?



ArtifactDescriptorRequest descriptorRequest = new ArtifactDescriptorRequest();
descriptorRequest.setArtifact(artifact);
descriptorRequest.setRepositories(artifactRequest.getRepositories());
ArtifactDescriptorResult descriptorResult;
descriptorResult = system.readArtifactDescriptor(session, descriptorRequest);

Failed to read ArtifactDescriptor...org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.sonatype.nexus:nexus-api:jar:1.9.2-RC3

at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:370) ~

Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact org.sonatype.nexus:nexus-runtime-platform:pom:1.9.2-SNAPSHOT in central (http://central.maven.org/maven2/)
at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:126) ~



_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aether-users



--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top