Maven OpenSAML dependency issue

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?

+6
source share
1 answer

Have you added xmltooling and openws dependencies to your POM file from the repository:

https://build.shibboleth.net/nexus/content/repositories/releases/org/opensaml/

 <dependency> <groupId>org.opensaml</groupId> <artifactId>xmltooling</artifactId> <version>1.3.2</version> </dependency> <dependency> <groupId>org.opensaml</groupId> <artifactId>openws</artifactId> <version>1.4.2</version> </dependency> 

Xmltooling should have xerces xml-api, which is missing.

Thanks Yogesh

+4
source

All Articles