I am trying to use spring-security-saml2-core-1.0.4.RELEASE
as maven dependency for my project and encounter two issues when mvn install
:
Failure
"Could not find artifact xml-apis:xml-apis:jar:1.4 ... "
. I have not found 1.4 version of xml-apis dependency neither in Maven repository nor in repositories listed in build.gradle file. As a workaround I am forced to add explicit dependency with slightly different version to my project:<dependency> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> <version>1.4.01</version> <scope>runtime</scope> </dependency>
Failure:
"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 ..."
. As a workaround I am forced to add explicit maven repositories where I was able to find the artifacts to my project:<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>
Is it possible to handle the build issues without declaring explicit dependency and repositories?