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

Unable to ignore certificate errors with v3.9.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.9.0
    • 3.9.1
    • Core
    • Linux and Mac

    Description

      Setting `-Dmaven.wagon.http.ssl.insecure=true` via `.mvn/jvm.config` does not work with v3.9.0, but works with v3.8.7. i.e. when executing `./mvnw org.apache.maven.plugins:maven-dependency-plugin:3.5.0:go-offline`.

      I've got a minishift instance running jenkins, with agents created on demand. I've got a nexus with a self signed certificate and for simpler out of the box Jenkins agents I'm happy for it to ignore the nexus certificate error. So Jenkins uses config-file-provider plugin to provide `jvm.config` and for builds to ignore certificate issues.

      Not sure if maven has;

      1. stopped reading `.mvn/jvm.config`
      2. stoped allowing multiple line `.mvn/jvm.config`
      3. not setting System properties as defined in `.mvn/jvm.config`
      4. wagon upgrade has introduced bug or new config

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              nhoj.patrick John Patrick
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: