Demo for JEE cannot compile

163 views
Skip to first unread message

Eric Gavaldo

unread,
Feb 13, 2023, 4:52:05 PM2/13/23
to Pac4j users mailing list
Hi,
I'm a newby with SSO and I'm interested in getting SAML2 in my web app (and possibly others later).

My Web app:
- Client side it's plain js accessing the server only with REST Json requests
- Server side it's a basic Servlet Exposing only some REST APIs (no framework)

Contraint: Server side, I must stick to Java 7 or 8.

Currently the authentication is done using a simple intial POST authhenticate() request and if the authentication is ok, some parameters are maintained in the session to know who is logged and so on...

All this is very basic.

PAC4J seems to be a simple, robust and open solution so I'd like to try it first.

Since I must stick with Java 8 I understood that I must use PAC4J version 4.*

I started to build using maven the following packages:

- j2e-pac4j-4.1.0.jar
- pac4j-core-4.5.7-all.jar.jar
- pac4j-saml-opensamlv3-4.5.7-all.jar
- pac4j-config-4.5.7-all.jar.jar

(even though I had issues with a wrong dependency for xmlsectool, and that I got 1 test failed on pac4j-saml-opensamlv3).

This seems to be correct and sufficient for what I need.

Now, I'm trying to use the souces of the demo in org\pac4j\demo\jee and I'm having some problems.

1) I had to change

final Client client = getSharedConfig().getClients().findClient(request.getParameter(Pac4jConstants.DEFAULT_CLIENT_NAME_PARAMETER)).orElseThrow(() -> new TechnicalException("No client found"));

by

DemoConfigFactory confFactory = new DemoConfigFactory();
        final Client client = confFactory.build().getClients().findClient(request.getParameter(Pac4jConstants.DEFAULT_CLIENT_NAME_PARAMETER)).orElseThrow(() -> new TechnicalException("No client found"));

because I couldn't find any implementation of getSharedConfig()...

Is what I have done correct ?

2) Can't find the CallContext class.

The line:

action = client.getRedirectionAction(new CallContext(context, JEESessionStore.INSTANCE)).get();

popups an error:

CallContext cannot be resolved to a type

I can't find this class anywhhere. I'm sure I'm missing something very basic...
Sorry in advance if these are dumb questions but I can't find any clue on the web.

I'd like to be able to compile this first before I can try to understand the whole thing in details and go with the integration (or ask for an expert to do it)...
Thanks,

Jérôme LELEU

unread,
Feb 14, 2023, 4:30:31 AM2/14/23
to Eric Gavaldo, Pac4j users mailing list
Hi,

This demo is dedicated to j2e-pac4j v4.1.
You'll see: 

final J2EContext context = new J2EContext(request, response);
final Client client = ConfigSingleton.getConfig().getClients().findClient(request.getParameter(Pac4jConstants.DEFAULT_CLIENT_NAME_PARAMETER));
try {
client.redirect(context);
} catch (final HttpAction e) {
}

Thanks.
Best regards,
Jérôme







--
You received this message because you are subscribed to the Google Groups "Pac4j users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pac4j-users/af188261-e431-4773-8146-d9d09ed3cc21n%40googlegroups.com.

Eric Gavaldo

unread,
Feb 14, 2023, 4:43:00 AM2/14/23
to Pac4j users mailing list
Hi Jérome,
Thank you a lot for your response!

I actually did try the 4.1 version of the demo going to the specific branch (even though I had a doubt it was necessary since there was no dedicated tag on GitHub) but then I had more problems:

ScreenHunter 3192.png

Maybe I need to build another package?
thanks,


Jérôme LELEU

unread,
Feb 14, 2023, 4:49:56 AM2/14/23
to Eric Gavaldo, Pac4j users mailing list
Hi,

I just switched to the 4.1.x branch, then set the JDK 8 locally and finally compiled/started the project: mvn clean package jetty:run
And it works.
Thanks.
Best regards,
Jérôme


--
You received this message because you are subscribed to the Google Groups "Pac4j users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users...@googlegroups.com.

Eric Gavaldo

unread,
Feb 14, 2023, 7:08:41 AM2/14/23
to Pac4j users mailing list
No luck on my side:
I downloaded the package from GitHub using the URL you provided, then Code > Download Zip and copied it in C:\Users\Eric\Desktop\PAC4J\ then ran the command as you did:

C:\Users\Eric\Desktop\PAC4J\jee-pac4j-demo-4.1.x>mvn clean package jetty:run

[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.7.0/maven-compiler-plugin-3.7.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.7.0/maven-compiler-plugin-3.7.0.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.7.0/maven-compiler-plugin-3.7.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.7.0/maven-compiler-plugin-3.7.0.jar (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.3.8.v20160314/jetty-maven-plugin-9.3.8.v20160314.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.3.8.v20160314/jetty-maven-plugin-9.3.8.v20160314.pom (5.5 kB at 70 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-project/9.3.8.v20160314/jetty-project-9.3.8.v20160314.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-project/9.3.8.v20160314/jetty-project-9.3.8.v20160314.pom (35 kB at 314 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-parent/25/jetty-parent-25.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-parent/25/jetty-parent-25.pom (22 kB at 296 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.3.8.v20160314/jetty-maven-plugin-9.3.8.v20160314.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.3.8.v20160314/jetty-maven-plugin-9.3.8.v20160314.jar (102 kB at 635 kB/s)
[INFO]
[INFO] -------------------< org.pac4j.demo:j2e-pac4j-demo >--------------------
[INFO] Building j2e-pac4j demo 4.1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ war ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/j2e-pac4j/4.1.0/j2e-pac4j-4.1.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/j2e-pac4j/4.1.0/j2e-pac4j-4.1.0.pom (6.7 kB at 108 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-web/5.1.1.RELEASE/spring-web-5.1.1.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-web/5.1.1.RELEASE/spring-web-5.1.1.RELEASE.pom (12 kB at 183 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-beans/5.1.1.RELEASE/spring-beans-5.1.1.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-beans/5.1.1.RELEASE/spring-beans-5.1.1.RELEASE.pom (2.7 kB at 36 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-core/5.1.1.RELEASE/spring-core-5.1.1.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-core/5.1.1.RELEASE/spring-core-5.1.1.RELEASE.pom (3.6 kB at 64 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-jcl/5.1.1.RELEASE/spring-jcl-5.1.1.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-jcl/5.1.1.RELEASE/spring-jcl-5.1.1.RELEASE.pom (1.9 kB at 29 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-context/5.1.1.RELEASE/spring-context-5.1.1.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-context/5.1.1.RELEASE/spring-context-5.1.1.RELEASE.pom (5.7 kB at 79 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-aop/5.1.1.RELEASE/spring-aop-5.1.1.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-aop/5.1.1.RELEASE/spring-aop-5.1.1.RELEASE.pom (2.5 kB at 46 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-expression/5.1.1.RELEASE/spring-expression-5.1.1.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-expression/5.1.1.RELEASE/spring-expression-5.1.1.RELEASE.pom (1.7 kB at 28 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-oauth/3.3.0/pac4j-oauth-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-oauth/3.3.0/pac4j-oauth-3.3.0.pom (2.7 kB at 46 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/github/scribejava/scribejava-apis/5.6.0/scribejava-apis-5.6.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/github/scribejava/scribejava-apis/5.6.0/scribejava-apis-5.6.0.pom (2.2 kB at 42 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/github/scribejava/scribejava/5.6.0/scribejava-5.6.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/github/scribejava/scribejava/5.6.0/scribejava-5.6.0.pom (9.9 kB at 133 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/github/scribejava/scribejava-core/5.6.0/scribejava-core-5.6.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/github/scribejava/scribejava-core/5.6.0/scribejava-core-5.6.0.pom (1.3 kB at 21 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.9.4/jackson-databind-2.9.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.9.4/jackson-databind-2.9.4.pom (5.9 kB at 105 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-base/2.9.4/jackson-base-2.9.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-base/2.9.4/jackson-base-2.9.4.pom (5.6 kB at 90 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.9.4/jackson-bom-2.9.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.9.4/jackson-bom-2.9.4.pom (12 kB at 195 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-parent/2.9.1/jackson-parent-2.9.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-parent/2.9.1/jackson-parent-2.9.1.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/30/oss-parent-30.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/30/oss-parent-30.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-parent/2.9.0/jackson-parent-2.9.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-parent/2.9.0/jackson-parent-2.9.0.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/28/oss-parent-28.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/28/oss-parent-28.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.9.4/jackson-core-2.9.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.9.4/jackson-core-2.9.4.pom (3.4 kB at 51 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-openid/3.3.0/pac4j-openid-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-openid/3.3.0/pac4j-openid-3.3.0.pom (3.0 kB at 46 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/openid4java/openid4java/1.0.0/openid4java-1.0.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/openid4java/openid4java/1.0.0/openid4java-1.0.0.pom (26 kB at 301 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.pom (6.0 kB at 112 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pom (11 kB at 148 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.1.1/project-4.1.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.1.1/project-4.1.1.pom (17 kB at 230 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.pom (8.4 kB at 127 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.1/httpcomponents-core-4.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.1/httpcomponents-core-4.1.pom (9.0 kB at 156 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/net/sourceforge/nekohtml/nekohtml/1.9.10/nekohtml-1.9.10.pom
Downloaded from central: https://repo.maven.apache.org/maven2/net/sourceforge/nekohtml/nekohtml/1.9.10/nekohtml-1.9.10.pom (1.3 kB at 25 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.pom (2.2 kB at 43 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.pom
Downloaded from central: https://repo.maven.apache.org/maven2/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.pom (738 B at 15 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/apache/1/apache-1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/apache/1/apache-1.pom (3.4 kB at 47 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/inject/guice/2.0/guice-2.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/inject/guice/2.0/guice-2.0.pom (771 B at 12 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/inject/guice-parent/2.0/guice-parent-2.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/inject/guice-parent/2.0/guice-parent-2.0.pom (2.6 kB at 47 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-cas/3.3.0/pac4j-cas-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-cas/3.3.0/pac4j-cas-3.3.0.pom (2.7 kB at 45 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/jasig/cas/client/cas-client-core/3.5.0/cas-client-core-3.5.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/jasig/cas/client/cas-client-core/3.5.0/cas-client-core-3.5.0.pom (3.0 kB at 57 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/jasig/cas/client/cas-client/3.5.0/cas-client-3.5.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/jasig/cas/client/cas-client/3.5.0/cas-client-3.5.0.pom (11 kB at 166 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/jasig/parent/jasig-parent/39/jasig-parent-39.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/jasig/parent/jasig-parent/39/jasig-parent-39.pom (17 kB at 251 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.8.8.1/jackson-databind-2.8.8.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.8.8.1/jackson-databind-2.8.8.1.pom (5.4 kB at 89 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.8.0/jackson-annotations-2.8.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.8.0/jackson-annotations-2.8.0.pom (1.8 kB at 36 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.1/slf4j-api-1.7.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.1/slf4j-api-1.7.1.pom (2.7 kB at 42 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.7.1/slf4j-parent-1.7.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.7.1/slf4j-parent-1.7.1.pom (13 kB at 202 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/jasig/cas/client/cas-client-support-saml/3.5.0/cas-client-support-saml-3.5.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/jasig/cas/client/cas-client-support-saml/3.5.0/cas-client-support-saml-3.5.0.pom (1.6 kB at 32 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/joda-time/joda-time/2.7/joda-time-2.7.pom
Downloaded from central: https://repo.maven.apache.org/maven2/joda-time/joda-time/2.7/joda-time-2.7.pom (29 kB at 353 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/23.6-jre/guava-23.6-jre.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/23.6-jre/guava-23.6-jre.pom (7.8 kB at 128 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/guava/guava-parent/23.6-jre/guava-parent-23.6-jre.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/guava/guava-parent/23.6-jre/guava-parent-23.6-jre.pom (10 kB at 163 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.pom (4.2 kB at 78 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.pom (1.8 kB at 34 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_parent/2.1.3/error_prone_parent-2.1.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_parent/2.1.3/error_prone_parent-2.1.3.pom (5.1 kB at 96 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.pom (2.8 kB at 47 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.pom (2.5 kB at 47 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-parent/1.14/animal-sniffer-parent-1.14.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-parent/1.14/animal-sniffer-parent-1.14.pom (4.4 kB at 66 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/34/mojo-parent-34.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/34/mojo-parent-34.pom (24 kB at 329 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-saml/3.3.0/pac4j-saml-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-saml/3.3.0/pac4j-saml-3.3.0.pom (8.9 kB at 154 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-core/3.4.0/opensaml-core-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-core/3.4.0/opensaml-core-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-saml-api/3.4.0/opensaml-saml-api-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-saml-api/3.4.0/opensaml-saml-api-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-saml-impl/3.4.0/opensaml-saml-impl-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-saml-impl/3.4.0/opensaml-saml-impl-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-soap-api/3.4.0/opensaml-soap-api-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-soap-api/3.4.0/opensaml-soap-api-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-xmlsec-api/3.4.0/opensaml-xmlsec-api-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-xmlsec-api/3.4.0/opensaml-xmlsec-api-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-security-api/3.4.0/opensaml-security-api-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-security-api/3.4.0/opensaml-security-api-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-security-impl/3.4.0/opensaml-security-impl-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-security-impl/3.4.0/opensaml-security-impl-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-profile-api/3.4.0/opensaml-profile-api-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-profile-api/3.4.0/opensaml-profile-api-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-profile-impl/3.4.0/opensaml-profile-impl-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-profile-impl/3.4.0/opensaml-profile-impl-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-messaging-api/3.4.0/opensaml-messaging-api-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-messaging-api/3.4.0/opensaml-messaging-api-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-messaging-impl/3.4.0/opensaml-messaging-impl-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-messaging-impl/3.4.0/opensaml-messaging-impl-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/opensaml/opensaml-xmlsec-impl/3.4.0/opensaml-xmlsec-impl-3.4.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/org/opensaml/opensaml-xmlsec-impl/3.4.0/opensaml-xmlsec-impl-3.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/cryptacular/cryptacular/1.2.1/cryptacular-1.2.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/cryptacular/cryptacular/1.2.1/cryptacular-1.2.1.pom (12 kB at 159 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/net/shibboleth/tool/xmlsectool/2.0.0/xmlsectool-2.0.0.pom
Downloading from shib-release: https://build.shibboleth.net/nexus/content/groups/public/net/shibboleth/tool/xmlsectool/2.0.0/xmlsectool-2.0.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/joda-time/joda-time/2.9.9/joda-time-2.9.9.pom
Downloaded from central: https://repo.maven.apache.org/maven2/joda-time/joda-time/2.9.9/joda-time-2.9.9.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-core/5.0.2.RELEASE/spring-core-5.0.2.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-core/5.0.2.RELEASE/spring-core-5.0.2.RELEASE.pom (4.0 kB at 73 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/projectreactor/reactor-bom/Bismuth-SR4/reactor-bom-Bismuth-SR4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/projectreactor/reactor-bom/Bismuth-SR4/reactor-bom-Bismuth-SR4.pom (3.6 kB at 56 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/netty/netty-bom/4.1.17.Final/netty-bom-4.1.17.Final.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/netty/netty-bom/4.1.17.Final/netty-bom-4.1.17.Final.pom (7.9 kB at 107 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/spring-jcl/5.0.2.RELEASE/spring-jcl-5.0.2.RELEASE.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/spring-jcl/5.0.2.RELEASE/spring-jcl-5.0.2.RELEASE.pom (1.9 kB at 37 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.4.8/httpcore-4.4.8.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.4.8/httpcore-4.4.8.pom (5.1 kB at 89 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.4.8/httpcomponents-core-4.4.8.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.4.8/httpcomponents-core-4.4.8.pom (13 kB at 221 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-parent/9/httpcomponents-parent-9.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-parent/9/httpcomponents-parent-9.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-gae/3.3.0/pac4j-gae-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-gae/3.3.0/pac4j-gae-3.3.0.pom (3.5 kB at 58 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/appengine/appengine-api-1.0-sdk/1.9.60/appengine-api-1.0-sdk-1.9.60.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/appengine/appengine-api-1.0-sdk/1.9.60/appengine-api-1.0-sdk-1.9.60.pom (607 B at 12 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/appengine/appengine/1.9.60/appengine-1.9.60.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/appengine/appengine/1.9.60/appengine-1.9.60.pom (845 B at 9.5 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/google/appengine/appengine-jsr107cache/1.9.60/appengine-jsr107cache-1.9.60.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/appengine/appengine-jsr107cache/1.9.60/appengine-jsr107cache-1.9.60.pom (607 B at 4.7 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-oidc/3.3.0/pac4j-oidc-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-oidc/3.3.0/pac4j-oidc-3.3.0.pom (2.9 kB at 55 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/nimbusds/oauth2-oidc-sdk/5.45/oauth2-oidc-sdk-5.45.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/nimbusds/oauth2-oidc-sdk/5.45/oauth2-oidc-sdk-5.45.pom (11 kB at 183 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/javax/mail/mail/1.4.7/mail-1.4.7.pom
Downloaded from central: https://repo.maven.apache.org/maven2/javax/mail/mail/1.4.7/mail-1.4.7.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/sun/mail/all/1.4.7/all-1.4.7.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/sun/mail/all/1.4.7/all-1.4.7.pom (0 B at 0 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.pom (21 kB at 254 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/38/commons-parent-38.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/38/commons-parent-38.pom (62 kB at 541 kB/s)
Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/net/minidev/json-smart/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadata.xml (1.2 kB at 20 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/nimbusds/lang-tag/maven-metadata.xml
Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/nimbusds/lang-tag/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/com/nimbusds/lang-tag/maven-metadata.xml (621 B at 9.3 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/nimbusds/lang-tag/1.4.3/lang-tag-1.4.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/nimbusds/lang-tag/1.4.3/lang-tag-1.4.3.pom (7.5 kB at 122 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/nimbusds/lang-tag/1.5/lang-tag-1.5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/nimbusds/lang-tag/1.5/lang-tag-1.5.pom (9.2 kB at 141 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/nimbusds/lang-tag/1.6/lang-tag-1.6.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/nimbusds/lang-tag/1.6/lang-tag-1.6.pom (9.2 kB at 133 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/nimbusds/nimbus-jose-jwt/5.4/nimbus-jose-jwt-5.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/nimbusds/nimbus-jose-jwt/5.4/nimbus-jose-jwt-5.4.pom (13 kB at 202 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-http/3.3.0/pac4j-http-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-http/3.3.0/pac4j-http-3.3.0.pom (4.3 kB at 61 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-ldap/3.3.0/pac4j-ldap-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-ldap/3.3.0/pac4j-ldap-3.3.0.pom (3.7 kB at 67 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ldaptive/ldaptive/1.2.3/ldaptive-1.2.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/ldaptive/ldaptive/1.2.3/ldaptive-1.2.3.pom (1.1 kB at 20 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ldaptive/ldaptive-parent/1.2.3/ldaptive-parent-1.2.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/ldaptive/ldaptive-parent/1.2.3/ldaptive-parent-1.2.3.pom (20 kB at 284 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-jwt/3.3.0/pac4j-jwt-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-jwt/3.3.0/pac4j-jwt-3.3.0.pom (2.5 kB at 40 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-sql/3.3.0/pac4j-sql-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-sql/3.3.0/pac4j-sql-3.3.0.pom (3.8 kB at 71 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-mongo/3.3.0/pac4j-mongo-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-mongo/3.3.0/pac4j-mongo-3.3.0.pom (4.0 kB at 79 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/mongodb/mongo-java-driver/3.6.1/mongo-java-driver-3.6.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/mongodb/mongo-java-driver/3.6.1/mongo-java-driver-3.6.1.pom (2.3 kB at 40 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-kerberos/3.3.0/pac4j-kerberos-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-kerberos/3.3.0/pac4j-kerberos-3.3.0.pom (3.7 kB at 68 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-couch/3.3.0/pac4j-couch-3.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/pac4j/pac4j-couch/3.3.0/pac4j-couch-3.3.0.pom (2.8 kB at 42 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.6.7.1/jackson-databind-2.6.7.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.6.7.1/jackson-databind-2.6.7.1.pom (6.1 kB at 112 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/jcl-over-slf4j/1.7.14/jcl-over-slf4j-1.7.14.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/slf4j/jcl-over-slf4j/1.7.14/jcl-over-slf4j-1.7.14.pom (963 B at 19 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.7.14/slf4j-parent-1.7.14.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.7.14/slf4j-parent-1.7.14.pom (13 kB at 210 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.14/slf4j-api-1.7.14.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.14/slf4j-api-1.7.14.pom (2.8 kB at 56 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/javax/servlet/jsp/javax.servlet.jsp-api/2.3.1/javax.servlet.jsp-api-2.3.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/javax/servlet/jsp/javax.servlet.jsp-api/2.3.1/javax.servlet.jsp-api-2.3.1.pom (11 kB at 182 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/taglibs/taglibs-standard-spec/1.2.5/taglibs-standard-spec-1.2.5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/taglibs/taglibs-standard-spec/1.2.5/taglibs-standard-spec-1.2.5.pom (5.3 kB at 92 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/taglibs/taglibs-standard/1.2.5/taglibs-standard-1.2.5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/taglibs/taglibs-standard/1.2.5/taglibs-standard-1.2.5.pom (4.3 kB at 69 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/taglibs/taglibs-parent/3/taglibs-parent-3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/taglibs/taglibs-parent/3/taglibs-parent-3.pom (7.6 kB at 136 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.pom (6.9 kB at 118 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.768 s
[INFO] Finished at: 2023-02-14T13:00:17+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project j2e-pac4j-demo: Could not resolve dependencies for project org.pac4j.demo:j2e-pac4j-demo:war:4.1.0-SNAPSHOT: Failed to collect dependencies at org.pac4j:pac4j-saml:jar:3.3.0 -> org.opensaml:opensaml-core:jar:3.4.0: Failed to read artifact descriptor for org.opensaml:opensaml-core:jar:3.4.0: Could not transfer artifact org.opensaml:opensaml-core:pom:3.4.0 from/to shib-release (https://build.shibboleth.net/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


Any idea ?

Eric Gavaldo

unread,
Feb 15, 2023, 4:14:14 PM2/15/23
to Pac4j users mailing list
Ok.
I decided to give it a last chance and to restart from scratch.

Step#1: building "pac4j-4.1.x" (java 8)
i) I downloaded the zip file from https://github.com/pac4j/pac4j/tree/4.1.x
ii) unzip it
iii) mvn clean package

Result:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for pac4j 4.1.1-SNAPSHOT:
[INFO]
[INFO] pac4j .............................................. SUCCESS [ 20.461 s]
[INFO] pac4j core ......................................... SUCCESS [01:45 min]
[INFO] pac4j: Java web security via CAS protocol .......... SUCCESS [ 36.374 s]
[INFO] pac4j: Java web security via SAML protocol (JDK 8, OpenSAML v3) FAILURE [ 11.053 s]
[INFO] pac4j: Java web security via OAuth protocol ........ SKIPPED
[INFO] pac4j: Java web security via JWT ................... SKIPPED
[INFO] pac4j for HTTP protocol ............................ SKIPPED
[INFO] pac4j: Java web security via OpenID Connect protocol SKIPPED
[INFO] pac4j for LDAP ..................................... SKIPPED
[INFO] pac4j for relational DB ............................ SKIPPED
[INFO] pac4j: security configuration by properties ........ SKIPPED
[INFO] pac4j: Java web security via OpenId protocol ....... SKIPPED
[INFO] pac4j: Java web security via SAML protocol (JDK 11, OpenSAML >= v4) SKIPPED
[INFO] pac4j for GAE UserService mechanism ................ SKIPPED
[INFO] pac4j for MongoDB .................................. SKIPPED
[INFO] pac4j for CouchDB .................................. SKIPPED
[INFO] pac4j for Kerberos ................................. SKIPPED
[INFO] pac4j for Spring Boot .............................. SKIPPED

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:02 min
[INFO] Finished at: 2023-02-15T22:04:18+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project pac4j-saml-opensamlv3: Could not resolve dependencies for project org.pac4j:pac4j-saml-opensamlv3:jar:4.1.1-SNAPSHOT: Failed to collect dependencies at net.shibboleth.tool:xmlsectool:jar:2.0.0: Failed to read artifact descriptor for net.shibboleth.tool:xmlsectool:jar:2.0.0: Could not transfer artifact net.shibboleth.tool:xmlsectool:pom:2.0.0 from/to shib-release (https://build.shibboleth.net/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :pac4j-saml-opensamlv3


What's wrong with me guys? this seems a very simple procedure and I don't see what I could do wrong...

Does someone has some experience with pac4j with Java 8 ? maybe it is just not maintained anymore and deprecated ?
Thanks,

Jérôme LELEU

unread,
Feb 16, 2023, 2:05:32 AM2/16/23
to Eric Gavaldo, Pac4j users mailing list
Hi,

I just removed the xmlsectool dependency from my Maven repo and called again: maven clean package jetty:run

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building j2e-pac4j demo 4.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ j2e-pac4j-demo ---
...

It works.

My maven local installation:

mvn -v
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)
Maven home: /Users/jleleu/tools/apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

Thanks.
Best regards,
Jérôme


Reply all
Reply to author
Forward
0 new messages