远程仓库加载不到需要的 jar 包

解决的问题

Could not resolve dependencies for project org.apereo.cas:cas-overlay:war:1.0: Failure to find net.shibboleth.tool:xmlsectool:jar:2.0.0 in https://mirrors.huaweicloud.com/repository/maven/ was cached in the local repository, resolution will not be reattempted until the update interval of huaweicloud has elapsed or updates are forced

意思是 Maven 配置的远程仓库中没有我们要加载的 jar 包

解决办法

🌏https://mvnrepository.com 找到需要的 jar 包,存在就下载下来

然后将其安装在本地 Maven 仓库当中

mvn install:install-file -Dfile=E:/jar/xmlsectool-2.0.0-beta-2.jar -DgroupId=net.shibboleth.tool -DartifactId=xmlsectool -Dversion=2.0.0 -Dpackaging=jar
posted @ 2022-07-09 18:04  村上春树的叶子  阅读(301)  评论(0编辑  收藏  举报