Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7687

Ignoring SSL using -Dmaven.wagon.http.ssl.insecure=true not working on 3.9.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.9.0
    • None
    • Core
    • None
    • MacOS 13.2
      Java version: 1.8.0_362, vendor: BellSoft
      Windows 10
      jdk-8.0.322.6-openj9

    Description

      Until now, we disabled SSL checks using following system variables:

      -Dmaven.wagon.http.ssl.insecure=true 
      -Dmaven.wagon.http.ssl.allowall=true
      -Dmaven.wagon.http.ssl.ignore.validity.dates=true
      

      but since 3.9.0 it does not work anymore

      I've tried directly on command line

      mvn compile -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -X
      

      but fail with

      Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.mygroupid:anotherdep:pom:1.0.0 from/to nexus-public (https://nexus.our.nexus.url/repository/maven-public/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      See attached error for complete stacktrace

      I've tried on different env (mac/windows) and different JVM (but all on 8)

      Attachments

        1. error.txt
          47 kB
          Thibaud Lepretre

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kakawait Thibaud Lepretre
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: