IntelliJ中pom.xml报错project上Failed to read artifact descriptor for xxxxxxxxx


导入的Maven工程pom.xml错误如下:无法导入或者添加依赖,原工程无错误

Failed to read artifact descriptor for dom4j:dom4j:jar:1.4-full
Failed to read artifact descriptor for radeox:radeox:jar:1.0b2-forked-22Apr2004 
Failed to read artifact descriptor for webwork:webwork:jar:12Dec05-jiratld 
Failed to read artifact descriptor for dom4j:dom4j:jar:1.4-full less... (Ctrl+F1) 
Failed to read artifact descriptor for radeox:radeox:jar:1.0b2-forked-22Apr2004 less... (Ctrl+F1) 
Failed to read artifact descriptor for webwork:webwork:jar:12Dec05-jiratld less... (Ctrl+F1) 


原因:可能在库中更新下载出现错误

去库文件夹中查询对应的jar文件,路径:C:\Users\(用户名)\.m2\repository\

没有jar,有xxxxxxxxxxxxxxxx.pom.lastUpdated,可能下载时出现问题没有下载下来

删除该文件,在对应的maven库(http://mvnrepository.com/)中下载该jar,放到对应的文件夹中,

重新reimport,成功

你可能感兴趣的:(Maven,intellij,maven)