Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-1037

Authentication failed on perform git-clone with 3.0.0-M1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-M1
    • 3.0.0-M4, 3.0.0-M2
    • Git, perform
    • None

    Description

      After switching from 2.5.3 to 3.0.0-M1, release perform failed on tag "git clone" :

      + mvn -B -f /workspace/myproject/pom.xml -Dresume=false release:perform -Dusername=**** -Dpassword=****
      Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00)
      Maven home: /maven-3.6.2
      Java version: 1.8.0_92, vendor: Oracle Corporation, runtime: /jre
      [...]
      [INFO] --- maven-release-plugin:3.0.0-M1:perform (default-cli) @ myproject ---
      [INFO] phase verify-release-configuration
      [INFO] starting perform goal, composed of 3 phases: verify-completed-prepare-phases, checkout-project-from-scm, run-perform-goals
      [INFO] [perform] 1/3 verify-completed-prepare-phases
      [INFO] [perform] 2/3 checkout-project-from-scm
      [INFO] Checking out the project to perform the release ...
      [INFO] Executing: /bin/sh -c cd /workspace/myproject/target && git clone --depth 1 --branch release/myproject-6 http://****:********@git.mydomain/mygroup/myproject.git checkout
      [INFO] Working directory: /workspace/myproject/target
      [ERROR] The git-clone command failed.
      [...]
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:perform (default-cli) on project pf-parent: Unable to checkout from SCM
      [ERROR] Provider message:
      [ERROR] The git-clone command failed.
      [ERROR] Command output:
      [ERROR] fatal: Authentication failed for 'http://****:********@git.mydomain/pf-java/mygroup/myproject.git/'
      

      Prepate goal doesn't have this issue : tag is well created etc....

      Activating git debug trace show that perform goal send a wrong password to git. It seem that perform goal retrieve the scm password from the scm.password property of release.properties file but scm.password property doesn't contain the raw password but a encoded value (that doesn't seem decoded by perform goal).

      Regards

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            cjanton JANTON
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: