我试图使用spring-security-saml2-core-1.0.4.RELEASEmaven依赖项为我的项目,遇到两个问题mvn install:
失败"Could not find artifact xml-apis:xml-apis:jar:1.4 ... ".我还没有在Maven存储库和build.gradle文件中列出的存储库中找到1.4版本的xml-apis依赖项.作为一种解决方法,我被迫在项目中添加略有不同版本的显式依赖:
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.4.01</version>
<scope>runtime</scope>
</dependency>
Run Code Online (Sandbox Code Playgroud)失败:"Could not find artifact org.opensaml:opensaml:jar:2.6.6 ..." and "Could not find artifact ca.juliusdavies:not-yet-commons-ssl:jar:0.3.17 ...".作为一种解决方法,我被迫添加显式的maven存储库,在那里我能够找到项目的工件:
<repository>
<id>alfresco</id>
<name>Alfresco</name>
<url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
</repository>
<repository>
<id>mulesoft</id>
<name>Mulesoft</name>
<url>http://repository.mulesoft.org/releases/</url>
</repository>
Run Code Online (Sandbox Code Playgroud)是否可以在不声明显式依赖关系和存储库的情况下处理构建问题?
提前谢谢你,Artur.