문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top