christopher.mil...@gd-ms.com wrote:

> Using Maven 3.5.4 on RHEL 8.1 with OpenJDK 1.8.
> 
> I've been using maven okay for awhile now and now I'm getting the following 
> error when running a pom.xml file.
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-jar-plugin:2.4:jar (default-jar) on project 
> SOFTWARE_Build_Media: Execution default-jar of goal 
> org.apache.maven.plugins:maven-jar-plugin:2.4:jar failed: Plugin 
> org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies 
> could not be resolved: Failed to collect dependencies at 
> org.apache.maven.plugins:maven-jar-plugin:jar:2.4 -> 
> org.apache.maven:maven-archiver:jar:2.5: Failed to read artifact descriptor 
> for org.apache.maven:maven-archiver:jar:2.5: Could not transfer artifact 
> org.apache.maven:maven-archiver:pom:2.5 from/to central 
> (https://repo.maven.apache.org/maven2): Received fatal alert: 
> handshake_failure -> [Help 1]
> 
> 
> If I add -X to the end of my mvn command, I see this error often:
> 
> Received fatal alert: handshake_failure
> 
> 
> Googling around, might be a TLS mismatch issue.  Is there anyway to tell and 
> correct it?
> 
> 
> I've tried to add the following tag to my settings.xml, 
> <offline>true</offline> and get the same error.

Just some things to try and some questions:

Can you reproduce this error when just fetching that dependency by running this 
command?

        mvn dependency:get 
-Dartifact=org.apache.maven.plugins:maven-jar-plugin:2.4:jar

If this fails, does it work when you use Maven 3.8.4?

        curl 
https://downloads.apache.org/maven/maven-3/3.8.4/binaries/apache-maven-3.8.4-bin.tar.gz
 | tar -xz
        ./apache-maven-3.8.4/bin/mvn dependency:get 
-Dartifact=org.apache.maven.plugins:maven-jar-plugin:2.4:jar

This works fine for me on macOS 12.2 with Maven 3.8.4 and Azul Zulu OpenJDK 
8u322.

According to sslscan repo.maven.apache.org only supports TLS 1.2 connections. 
If you are getting TLS handshake errors, then I suspect that something in your 
stack does not support TLS 1.2, or maybe there is an issue with the trusted CA 
certificates.

As far as I know Java 8 should support TLS 1.2. What OpenJDK distribution and 
version do you use according to 'java -version'?

Can you the POM file directly without Maven or Java?

        curl 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.pom

Isn’t RHEL 8.1 also in need of an update? I believe RHEL 8.4 is current?

Nils.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to