Uploaded image for project: 'Maven Deploy Plugin'
  1. Maven Deploy Plugin
  2. MDEPLOY-98

Cannot deploy-file to sftp using another username/password

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.4
    • None
    • deploy:deploy-file
    • None
    • Java version: 1.6.0_12
      Java home: /data/JavaIDE/jdk1.6.0_12-x64/jre
      Default locale: en_GB, platform encoding: UTF-8
      OS name: "linux" version: "2.6.26-1-amd64" arch: "amd64" Family: "unix"

    Description

      I'm trying to copy one artifact to my shared repository.
      I have the original .pom and .jar files downloaded locally from an external repository.
      My settings file has:

      <server>
      <id>jquantlib-external_free</id>
      <username>continuum</username>
      <password>secret</password>
      </server>

      My pom.xml has:

      <repository>
      <id>jquantlib-external_free</id>
      <name>JQuantLib External Free Repository</name>
      <url>sftp://ftp.jquantlib.org/maven2/repos/external_free</url>
      <layout>default</layout>
      <uniqueVersion>false</uniqueVersion>
      </repository>

      These are the test cases and results:

      1) initial trial according to documentation:

      mvn deploy:deploy-file -DpomFile=joda-primitives-0.6.pom -Durl=sftp://ftp.jquantlib.org/maven2/repos/external_free -DrepositoryId=jquantlib-external_free -Dfile=lib/joda-primitives-0.6.jar -X -e

      It does ask not any authentication information but seems it's not picking up anything from settings.xml, otherwise it would connect properly.

      2) Trying to specify the username/password in the command line:

      mvn deploy:deploy-file -DpomFile=joda-primitives-0.6.pom -Durl=sftp://continuum:secret@ftp.jquantlib.org/maven2/repos/external_free -DrepositoryId=jquantlib-external_free -Dfile=lib/joda-primitives-0.6.jar -X -e

      Authentication information is simply ignored.

      3) Trying to removed 'repositoryId'

      mvn deploy:deploy-file -DpomFile=joda-primitives-0.6.pom -Durl=sftp://continuum:secret@ftp.jquantlib.org/maven2/repos/external_free -Dfile=lib/joda-primitives-0.6.jar -X -e

      Authentication information is simply ignored.
      Asks my password (and not the password of account continuum):
      Password for rgomes@ftp.jquantlib.org:

      4) back to the initial test and the stack trace

      mvn deploy:deploy-file -DpomFile=joda-primitives-0.6.pom -Durl=sftp://ftp.jquantlib.org/maven2/repos/external_free -DrepositoryId=jquantlib-external_free -Dfile=lib/joda-primitives-0.6.jar -X -e

      (logfile attached)

      Thanks a lot

      Richard Gomes

      Attachments

        1. mvn-deploy-2.txt
          110 kB
          Richard Gomes
        2. mvn-deploy.txt
          58 kB
          Richard Gomes

        Activity

          People

            bentmann Benjamin Bentmann
            rgomes1997 Richard Gomes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: