Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-696

SVN tagging fails with svn+ssh://username@host URL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1
    • Component/s: maven-scm-provider-svn
    • Labels:
      None
    • Flags:
      Patch

      Description

      Using the release plugin 2.3.2, the following error occurs when using a svn+ssh://username@host URL:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project project: Unable to tag SCM
      [ERROR] Provider message:
      [ERROR] The svn tag command failed.
      [ERROR] Command output:
      [ERROR] svn: Source and dest appear not to be in the same repository (src: 'svn+ssh://svn.example.com/svn/project/trunk'; dst: 'svn+ssh://username@svn.intranet.qrr.es/svn.example.com/svn/project/tags/tag-name-1.0')
      

      I think I narrowed the cause down to the SvnTagCommand class of the maven-scm-provider-svnexe module. Applying the attached patch the release works without a problem.

      A fix for a similar problem was reported and fixed by SCM-217, but changes of SCM-262 did not consider this case.

        Attachments

        1. maven-scm-provider-svnexe.diff
          0.7 kB
          Raúl Wegmann

          Issue Links

            Activity

              People

              • Assignee:
                olamy Olivier Lamy
                Reporter:
                rwegmann Raúl Wegmann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: