mvn命令放jar文件到本地仓
运行mvn spring-boot:run 报错:
[ERROR] Failed to execute goal on project spring-boot-security-saml-sample: Could not resolve dependencies for project com.vdenotaris.spring:spring-boot-security-saml-sample:jar:2.4.0.RELEASE
[ERROR] dependency: org.opensaml:opensaml:jar:2.6.6 (compile)
[ERROR] org.opensaml:opensaml:jar:2.6.6 was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced
解决方法:
,如果你有一个名为opensaml-2.6.6.jar的JAR包,解析相关属性的值:
groupId: org.opensaml
artifactId: opensaml
version: 2.6.6
packaging: jar
得到执行的命令:
mvn install:install-file-Dfile=opensaml-2.6.6.jar-DgroupId=org.opensaml-DartifactId=opensaml-Dversion=2.6.6-Dpackaging=jar效果图如下: