Failure to find (pom/jar) in http://xxx.com was cached in the local repository

maven项目reimport正常,但是package就报错Failure to find (pom/jar) in http://xxx.com was cached in the local repository

到本地仓库将报错的jar包拷贝的任意目录下,在该目录下执行

mvn install:install-file -DgroupId=com.aliyun.oss -DartifactId=aliyun-sdk-oss -Dversion=3.4.2 -Dpackaging=pom -Dfile=aliyun-sdk-oss-3.4.2.jar

显示构建成功即可

你可能感兴趣的:(jar,java)