Maven Missing artifact jar

Posted blogsheng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven Missing artifact jar相关的知识,希望对你有一定的参考价值。

maven error:
Multiple annotations found at this line: - Missing artifact log4j:log4j:jar:1.2.15:compile - Missing artifact org.apache.xmlbeans:xmlbeans-xpath:jar:2.4.0:compile - Missing artifact org.apache.ws.commons.axiom:axiom-dom:jar:1.2.5:compile - Missing artifact org.apache.httpcomponents:httpcore:jar:4.0-alpha5:compile

.... and so many more ...

 

解决方法:

It is not a unique issue, happens every now and then (sometimes due to a slow connection and sometimes due to proxy servers now allowing to download)

You can get rid of this by either of the following ways:

1) Force Update: Right Click on the Project in Eclipse -> Maven -> Update Project On this screen select the check box Force Update for Snapshots/Releases

2) Clearing Maven Cache: If you still face a problem, go to the local repository on your system, which might be present at C:\\Users\\myusername\\.m2\\repository and delete the .cache folder and then follow step 1.

3)If still facing issues, manually go to the org/apache folder and delete everything and then follow step 1. (This will definitely solve the issue.这将一定能解决.)

以上是关于Maven Missing artifact jar的主要内容,如果未能解决你的问题,请参考以下文章

Maven报错Missing artifact jdk.tools:jdk.tools:jar:1.7--转

maven missing artifact 怎么解决

修改maven产生missing artifact错误

导入maven项目pom.xml首行报错missing artifact。。。

eclipse导入maven工程missing artifact(实际是存在的)错误解决

eclipse导入maven工程missing artifact(实际是存在的)错误解决