原文:maven build失败 (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...)

今天mvn clean package一个子工程 renren admin 时报错: Failed to execute goal on project renren admin: Could not resolve dependencies for project io.renren:renren admin:war: . . : Failed to collect dependencies ...

2019-09-21 22:02 0 2872 推荐指数:

查看详情

Failure to find parent:pom:2.2.6 in http://maven.aliyun was cached in the local repository...

报错如下: 原因分析:主要是阿里云的Maven仓库无法更新这个版本的pom依赖; 解决过程:于是直接在pom里面添加阿里云maven,还是报同样的错误;看到网上说删除maven仓库的对应目录或目录下的*.lastUpdated文件,然后再次运行maven命令,然后再打包设置相关的属性 ...

Mon Mar 30 01:24:00 CST 2020 0 2131
maven------Failure to find xxxx in http://maven.aliyun.com/

由于我的 IDEA 全局配置的 settings 是 aliyun 的仓库,我当前的项目配置的私服的仓库,mvn install 就会出现问题, 从上面的报错信息看,他是从全局配置的仓库中 找 jar 去了,而我现在用的私服,这种问题的解决办法就是 mvn install 指定 settings ...

Tue Jun 23 18:57:00 CST 2020 0 5472
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM