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.这将一定能解决.)

时间: 2024-08-06 03:17:46

Maven Missing artifact jar的相关文章

[Maven] Missing artifact (解决办法)

在使用Eclipse的Maven插件时,经常会遇到Missing artifact的编译错误,特别是在新环境中搭建相关项目时,经常出现类似此问题,今天一位同事又遇到了,经过一顿问题原因查找,始终无法解决,决定来好好研究研究此类问题,以免以后遇到此类问题.   以下为尝试过的办法: 1. 项目右键->Maven->Update Dependency,失败 2. 项目右键->Maven->Disable Dependency, 然后再Enable Dependency,失败 3. 将E

maven Missing artifact xxxx:jar:1.9

出现这种情况一般都是因为maven资源库中不包含指定的jar包 解决方法: 1.建立自己的Nexus私服 (复杂但是推荐使用) 2.添加其他有此版本的中央库,即添加代理 (需要很顺畅的网络支持) 3.mvn install 将jar包直接装载到本地的.m2资源库,自定义groupid,artififactid,versionid.(不推荐,只可临时应急用)

关于maven的POM提示missing artifact...jar

远程仓库跟本地仓库都可以看到有这个JAR包,但POM里就是提示找不到,其实只要把这个版本的JAR包删了(在本地仓库里找到这版本JAR包的文件夹并删除),再重新update project就行

【Java】SVN下载maven项目到eclipse之后,项目红叉,pom.xml出现Missing artifact fakepath:dubbo:jar:2.8.5等缺少jar包情况

刚入公司,从svn上把代码弄下来之后导入eclipse,一般是maven项目,往往项目都会有红叉.如果排除代码本身问题,一般是jar包没有. 鼠标点开pom.xml文件,在约束那里一般有红叉,鼠标放上去一般会提示Missing artifact fakepath:dubbo:jar:2.8.5等提示,表示本地仓库缺少jar包. 如果本地仓库确实没有,一般点击maven-update project,他会自动去私服下载. 如果你本地仓库已经有了,往往是之前没有下完整的.lastUpdated的ja

maven 加入json-lib.jar 报错 Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile

pom.xml 内容: [html] view plaincopy <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4</version> </dependency> 报错误:Missing artifact net.sf.json-lib:json-lib:jar:2.4:

【maven】解决Missing artifact jdk.tools:jdk.tools:jar:1.6

解决在pom.xml文件中出现的Missing artifact jdk.tools:jdk.tools:jar:1.6问题, <dependency> <groupId>jdk.tools</groupId> <artifactId>jdk.tools</artifactId> <version>1.7</version> <scope>system</scope> <systemPath&

eclipse的maven项目报Missing artifact jdk.toos:jdk.toos:jar:1.6错

很多框架都会依赖jdk中的tools.jar,但是maven仓库中却没有. 如在eclipse+maven编写mapreduce代码,就会报Missing artifact jdk.toos:jdk.toos:jar:1.6 如何解决这个问题呢,只需要在项目的pom.xml 文件中加入以下配置,指定maven去本地寻找 tools.jar. <dependency>        <groupId>jdk.tools</groupId>        <artif

maven build 产生 Missing artifact org.jboss.logging:jar:3.1.0.GA解决方法

报错来源分析 由于hibernate-entitymanager 需要jboss logging .由于或多或少的原因导致 maven无法下载相关的jar文件. 解决办法: 访问 http://search.maven.org 搜索jboss-logging 点击all, 找到相关的的版本,再点击jar下载文件 下载好的文件放到maven仓库中对应版本的位置,一般是C:\Users\ username \ .m2\repository\org\jboss\logging\jboss-loggin

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

原文地址:http://blog.csdn.net/u013281331/article/details/40824707 在Eclipse中检出Maven工程,一直报这个错:“Missing artifact jdk.tools:jdk.tools:jar:1.7” 看整个pom.xml文件也不见其他异常. 而tools.jar包是JDK自带的,于是怀疑pom.xml中以来的包隐式依赖tools.jar包,而tools.jar并未在库中, 好比:当前工程依赖A包,而A包在开发打包过程依赖too