maven clean package 时出现Failed to read artifact descriptor for的问题解决

Posted .net

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven clean package 时出现Failed to read artifact descriptor for的问题解决相关的知识,希望对你有一定的参考价值。

maven clean package 时出现Failed to read artifact descriptor for的问题

 

[ERROR] Failed to execute goal on project eii-frame-common: Could not resolve dependencies for project com.eii.frame.common:eii-frame-common:jar:2.1: Failed to collect dependencies at com.eii.frame.core:eii-frame-core:jar:2.1: Failed to read artifact descriptor for com.eii.frame.core:eii-frame-core:jar:2.1: Failure to find com.eii.frame:eii-frame:pom:2.1 in http://120.24.1.1:8087/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

 

解决办法:

把parent工程,也就是package是pom的那个工程先install一下。

要是不行的话可以试下mvn -X clean install,-X表示强制从远程库更新dependency;再不行可能就是远程仓库没有架包了。

 

以上是关于maven clean package 时出现Failed to read artifact descriptor for的问题解决的主要内容,如果未能解决你的问题,请参考以下文章

Maven使用package打包Spring Boot时出现:Unable to find a single main class from the following candidates的问题解决

maven clean或package报错

idea??????maven????????????clean,install,package?????????

maven package,clean,install,compile命令

maven package,clean,install,compile命令

为啥我在运行 maven install 时出现“包不存在”错误?