Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-435

Plugin running in batch mode fails to upload site via scp due to failure to resolve credentials from settings.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0-beta-7
    • None
    • site:deploy
    • None
    • software platform

    Description

      When the site:deploy plugin is ran in interactive mode it prompts you for your username and password. On a Hudson build server we run maven in batch mode.

      The command line below:
      mvn site:deploy --batch-mode

      will always fail the build due to the following error
      Cannot connect. Reason: Auth cancel

      the only temporary workaround to fix this at the moment is to have the user credentials in your pom as below
      <site>
      <id>docs</id>
      <name>Release Documentation Website</name>
      <url>scp://[USER]:[PASSWORD]@[MACHINE]/

      {location uri}/</url>
      </site>

      In contradiction the distribution management works fine with the following pom setup
      <distributionManagement>
      <repository>
      <id>id</id>
      <name>the id</name>
      <url>scp://[USER]@[MACHINE]/{location uri}

      /</url>
      </repository>
      </distributionManagement>

      and never prompts you for user credentials always grabing them from the settings .xml

      Attachments

        Activity

          People

            Unassigned Unassigned
            kigguna Abraham Kiggundu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: