使用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即可解决这个问题;