I was assigned the task of implementing SAML between my company and a client. I looked at using OpenSAML, but I'm struggling to set up a maven project.
I add a dependency:
<dependency> <groupId>org.opensaml</groupId> <artifactId>opensaml</artifactId> <version>2.5.1</version> </dependency>
but the pom file has an error: Missing xerces artifact: xml-apis: jar: 1.4.01
I cannot find this dependency in the maven repository. When checking the OpenSAML site it says:
Using OpenSAML in Maven-Based Projects
The following is the information needed to use OpenSAML inside Maven-based projects. Maven repository: https://build.shibboleth.net/nexus/content/repositories/releases Group ID: org.opensaml Artifact ID: opensaml
But when I set up this repository in my pom file, it still cannot find the dependency.
<repositories> <repository> <id>org.opensaml</id> <url>https://build.shibboleth.net/nexus/content/repositories/releases</url> </repository> </repositories>
Has anyone got OpenSAML installed on Maven that can help?
Craig source share