saml 2.0 - Unable to upgrade OPENSAML to 5.1.2 from 2.5.3 - Stack Overflow

admin2025-04-16  3

I need to upgrade OPENSAML to 5.1.2 from 2.5.3 to support Java 17 as our project has been upgraded to Java 17. While I try to upgrade OPENSAML I am facing issues which are listed below

  1. OPENSAML-5.1.2 is not available in Maven repo
  2. While I tried downloading from /, I could not resolve the compilation errors and could not find few classes in the respective package.
  3. No proper documentation provided for the latest version.

Not sure where can I find proper documentation on how to upgrade to latest version.

If anyone is using OPENSAML-5.1.2 request you to provide some inputs.

I need to upgrade OPENSAML to 5.1.2 from 2.5.3 to support Java 17 as our project has been upgraded to Java 17. While I try to upgrade OPENSAML I am facing issues which are listed below

  1. OPENSAML-5.1.2 is not available in Maven repo
  2. While I tried downloading from https://repo.jenkins-ci.org/public/, I could not resolve the compilation errors and could not find few classes in the respective package.
  3. No proper documentation provided for the latest version.

Not sure where can I find proper documentation on how to upgrade to latest version.

If anyone is using OPENSAML-5.1.2 request you to provide some inputs.

Share Improve this question asked Feb 4 at 8:32 UshaUsha 1943 gold badges4 silver badges20 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I was facing the same issue, and after trying different repositories the Shibboleth repository worked for me. (I put it below maven so all my other dependencies are pulled properly from maven)

<repositories>
    <repository>
        <id>central</id>
        <url>https://repo.maven.apache.org/maven2</url>
    </repository>
    <repository>
        <id>shibboleth-releases</id>
        <url>https://build.shibboleth.net/maven/releases/</url>
    </repository>
</repositories>

Then you can just import OpenSAML like follows:

    <dependency>
        <groupId>org.opensaml</groupId>
        <artifactId>opensaml-saml-api</artifactId>
        <version>5.1.2</version>
    </dependency>
    <dependency>
        <groupId>org.opensaml</groupId>
        <artifactId>opensaml-saml-impl</artifactId>
        <version>5.1.2</version>
    </dependency>

You can explore the Shibboleth repo and check it out as per requirements if necessary (navigate inside org > opensaml): https://build.shibboleth.net/maven/releases/

And about documentation, even I couldn't find proper documentation on the same, the best I could find were the following java docs, (In my case, since I use spring security, I didn't have a pressing need for the lower level documentation):

  • https://shibboleth.net/api/java-opensaml/5.0.0/help-doc.html
  • https://shibboleth.net/api/java-opensaml/5.1.2/index.html

Hope this helps!

转载请注明原文地址:http://www.anycun.com/QandA/1744733338a86852.html