Maven-010-maven 编译报错:Failure to ... in ... was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced.
Maven 报错 to in The not 编译 of
2023-09-11 14:18:59 时间
今晚在编译 maven 项目的时候,命令行报错,出现 Failure to ... in ... 类似错误,详细的错误信息如下所示:
[INFO] ------------------------------------------------------------------------ [INFO] Building arrow 0.0.1 [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.473 s [INFO] Finished at: 2016-02-22T21:30:55+08:00 [INFO] Final Memory: 5M/157M [INFO] ------------------------------------------------------------------------ [ERROR] Plugin org.apache.maven.plugins:maven-shade-plugin:2.4.3 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-shade-plugin:jar:2.4.3 in http://localhost:8081/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] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
由错误信息(was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced)可知,构件(org.apache.maven.plugins:maven-shade-plugin:jar:2.4.3)已经被占用,无法进行操作,进入本地仓库对应目录,将其对应版本文件夹删除,重新执行打包命令,成功编译打包,如下图所示,哈哈哈。。。
至此, Maven-010-maven 编译报错:Failure to ... in ... was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced 顺利完结,希望此文能够给初学 Maven 的您一份参考。
最后,非常感谢亲的驻足,希望此文能对亲有所帮助。热烈欢迎亲一起探讨,共同进步。非常感谢! ^_^
相关文章
- 【maven】IDEA:存在jar包,pom.xml文件没报错,但是Maven-Project-Dependencies有红线报错
- maven配置阿里云仓库
- 【Maven】Maven之使用maven快照版本机制进行多项目依赖开发
- Ubuntu下配置jdk及maven等方法
- 解决maven打jar包报错 source 1.3 中不支持
- maven的入门hello world
- eclipse创建Maven项目,无法添加src/main/java source folder 问题
- maven报错: 错误的类文件:… 类文件具有错误的版本 52.0,应为 54.0
- How to fix My note local Maven build error due to Selenium dependency declaration
- maven-antrun-plugin - Target
- Atitit maven配置pom文件 配置法v2 t33 目录 1. Maven打包war原理1 1.1. 在target目录生成war包ori目录。。。里面就是所有的资源1 1.2. 去掉
- Android的java的报错提示:Add google Maven repository and sync project
- 【项目实战】使用Maven插件(jacoco-maven-plugin),实现生成代码覆盖率报告
- 【异常】Maven构建报错 repackage failed: Unable to find a single main class from the following candidates
- 解决Maven重复依赖问题(同一个jar包,多个版本)maven同一依赖多版本共存 maven处理mysql-connector-java多版本问题 解决无法将“mvn”项识别为xxx jarjar
- Maven deploy报错:Failed to deploy artifacts: Could not transfer artifact from/to snapshots 401 Unauthorized
- springboot maven打包插件
- (三)Jenkins部署项目报错Build step ‘Invoke top-level Maven targets‘ marked build as failure
- Maven功能、配置、特点是啥??