maven 依赖问题:Failed to read artifact descriptor for XXX:jar

  • Post author:
  • Post category:其他


问题来源:修改maven仓库后,在eclipse中修改了maven的setting.xml的位置,build之后,出现该错误。

Failed to read artifact descriptor for aopalliance:aopalliance:jar:1.0

org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for aopalliance:aopalliance:jar:1.0
	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:282)
	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:198)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)
	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172)

解决方法:  alt+f5执行maven update,并勾选Force Update of Snapshots,等待更新完成后,问题解决。



版权声明:本文为u012224226原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。