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: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

原文地址:https://www.cnblogs.com/hahajava/p/11565070.html

时间: 2024-08-26 05:58:41

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...)的相关文章

IDEA Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/)

[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved:Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact org.apache.maven.plugins

[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Cannot access nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) in off

这个错误是将work offline打勾引起的. 这个是离线工作模式,相当于断网,远程的jar会拉不下来. 原文地址:https://www.cnblogs.com/yang101/p/11306285.html

Maven依赖中类似was cached in the local repository样的错误

我们在使用maven编译一个项目时经常会遇到诸如此类的问题. Could not get the value for parameter encoding for plugin execution default-resources Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failure to find org.code

MAVEN奇葩问题was cached in the local repository, resolution will not be reattempted until

[ERROR] Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:Finchley.M7 in https://maven.aliyun.com/repository/public was cached in the local repository, resolution will not be reattempted until the upda

Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from http://repo.maven.apache.org/ maven2 was cached in the local repository, resolution will not be reattempted until the update interv

Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from http://repo.maven.apache.org/ maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Origi

Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval o

pom.xml报错: Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are fo

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命令,然后再打包设置相关的属性,但是又报无权限访问的错误:    后来就想着要不更改pom的版本,将其降低点,即改为2.2.5就好了,如下图所示: <?xml version="1.0" encoding="UTF-8&

解决 Maven was cached in the local repository, resolution will not be reattempted until the update interv

问题原因 Maven默认会使用本地缓存的库来编译工程,对于上次下载失败的库,maven会在~/.m2/repository/<group>/<artifact>/<version>/目录下创建xxx.lastUpdated文件,一旦这个文件存在,那么在直到下一次nexus更新之前都不会更新这个依赖库. 解决办法: 删除vvv~/.m2/repository/<group>/<artifact>/<version>/目录下的*.last

解决maven执行命令时提示:cached in the local repository

可能原因是maven私服找不到相关jar. 我们可以到http://mvnrepository.com中找到相应的jar,上传到私服即可. 然后到本地仓库中找到相应的文件夹路径,删除相关文件夹后,再执行maven命令.