解决mavencommons-cli:commons-cli:jar:1.0 下载不下来的错误

使用maven进行项目构建的时候,出现pom.xml文件报commons-cli:commons-cli:jar:1.0 下载不下来;

解决方式:

 在maven仓库中,http://mvnrepository.com/artifact/commons-cli/commons-cli/1.2;搜索对应的版本的commons-cli然后出现下图的

将途中的代码放置到pom.xml文件中,先将本地仓库中的commons-cli文件夹删除,然后再重新maven-->upadate project即可解决这个问题;

解决完这个问题之后,又出现了一个问题

Failure to transfer org.codehaus.plexus:plexus-utils:jar:3.0 from 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-aliyun has elapsed or updates are forced. Original error: Could not
transfer artifact org.codehaus.plexus:plexus-utils:jar:3.0 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): GET request of:
org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar from nexus-aliyun failed

想解决这个问题还是到maven中心仓库找到对应的jar包,然后重新maven-->update project即可解决这个问题;

 

posted @   丹阳89  阅读(2440)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示