Domanda

I have been assigned a task to implement SAML between my company and a client. I was looking at using OpenSAML but I am struggling to set up the maven project.

I add the dependency:

<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml</artifactId>
<version>2.5.1</version>
</dependency>

but the pom file has an error: Missing artifact xerces:xml-apis:jar:1.4.01

I cant find this dependency in the maven repository. When checking the OpenSAML site it states:

Using OpenSAML in Maven-based Projects

Following is the information necessary to use OpenSAML within Maven-based projects. Maven Repository: https://build.shibboleth.net/nexus/content/repositories/releases Group ID: org.opensaml Artifact ID: opensaml

But when i configure that respository in my pom file, it still cant 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 set up in Maven that can help?

È stato utile?

Soluzione

Have you also added the 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>

The xmltooling should have the xerces xml-api that is missing.

Thanks, Yogesh

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top