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

问题来源:修改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,等待更新完成后,问题解决。

maven 依赖问题:Failed to read artifact descriptor for XXX:jar_第1张图片

你可能感兴趣的:(生产环境问题)