maven build失败 (Failure to find io.renren:renren-security:pom:3.2.0 in http://maven.aliyun.com/nexus

Posted hahajava

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven build失败 (Failure to find io.renren:renren-security:pom:3.2.0 in http://maven.aliyun.com/nexus相关的知识,希望对你有一定的参考价值。

今天mvn clean package一个子工程(renren-admin)时报错:

Failed to execute goal on project renren-admin: Could not resolve dependencies for project io.renren:renren-admin:war:3.2.0: Failed to collect dependencies at io.renren:renren-common:jar:3.2.0: Failed to read artifact descriptor for io.renren:renren-common:jar:3.2.0: Failure to find io.renren:renren-security:pom:3.2.0 in http://maven.aliyun.com/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]

无法找到renren-common:jar:3.2.0

这个jar包是项目中的另一个平级的子工程。

解决办法:

先打包父工程:mvn -X clean install   再重新打包子工程renren-admin,打包成功。

 

参考文章   https://www.cnblogs.com/newworldnewstart/p/9341620.html

https://www.oschina.net/question/143808_156035

以上是关于maven build失败 (Failure to find io.renren:renren-security:pom:3.2.0 in http://maven.aliyun.com/nexus的主要内容,如果未能解决你的问题,请参考以下文章

ionic build android failure - 任务 processDebugResources 执行失败

FAILURE:通过“flutter build appbundle”命令构建项目时构建失败并出现异常

FAILURE:构建失败并出现异常。 * 其中:构建文件 'D:\AProjects\flutter_app\android\app\build.gradle' 行:24

FAILURE:构建失败并出现异常。 * 其中:构建文件 'C:\Users\mayev\dev\remplazo\Chronos\android\app\build.gradle' 行:81

Flutter, Android Unable to load Maven meta-data from ~ Build error 解决方法

FAILURE: Build failed with an exception.