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

Regression: Deploy to SCP with privateKey fails - privateKey and passphrase gets lost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • None
    • None

    Description

      Hello!

      Using the maven-deploy-plugin version 2.5 to deploy to a server with scp and private key fails after the upgrade to maven 3.

      The configuration is stored in setting.xml
      <id>mymavenrepo</id>
      <username>myuser</username>
      <privateKey>C:/Dokumente und Einstellungen/bmaehr/.ssh/myprivatekey.id</privateKey>
      <passphrase>mypassword</passphrase>

      The configuration is correctly loaded by maven and available at org.apache.maven.repository.legacy.LegacyRepositorySystem.getAuthentication(RepositorySystemSession, ArtifactRepository). But at this place the conversation to org.apache.maven.artifact.repository.Authentication happens and only username and password is forwarded and privateKey and passphrase gets lost.
      At org.apache.maven.RepositoryUtils.toRepo(ArtifactRepository) the information is converted back to org.sonatype.aether.repository.Authentication but the privateKey and passphrase are not recovered.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bmaehr Bernhard Mähr
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: