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

Wrong URL for commiting to SVN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Incomplete
    • 2.0-beta-8, 2.0-beta-9
    • None
    • branch
    • None
    • All

    Description

      Command:
      ---------------------------------------------------

      set PROJECT_NAME=fytools
      set RELEASE_VERSION=1.1
      set NEXT_VERSION=1.2
      set URL=http://svn.office.factority.de/factority
      set URL_BRANCHES=%URL%/BRANCHES
      set DRY=false
      
      mvn -U --batch-mode release:branch -Dusername=%USERNAME% -Dpassword=%PASSWORD% \
      -DtagBase=%URL_BRANCHES% -DautoVersionSubmodules=true -DupdateBranchVersions=true \
      -DupdateWorkingCopyVersions=false -DbranchName=%PROJECT_NAME%-%RELEASE_VERSION%.1-SNAPSHOT \
      -DdevelopmentVersion=%RELEASE_VERSION%.1-SNAPSHOT -DdryRun=%DRY%
      

      Symptom:
      ---------------------------------------------------

      The resulting POM contains the expected SVM link:

      http://svn.office.factority.de/factority/BRANCHES/fytools-1.1.1-SNAPSHOT
      

      The execution log contains the following:

      [INFO] Executing: cmd.exe /X /C "svn --username msheimhu --password ***** --non-interactive copy 
      --file C:\Users\XXXXX\AppData\Local\Temp\maven-scm-439769046.commit .
      http://svn.office.factority.de/factority/fytools/branches/fytools-1.1.1-SNAPSHOT"
      

      The execution log indicates, that Maven tries to commit to the following link:

      http://svn.office.factority.de/factority/fytools/branches/fytools-1.1.1-SNAPSHOT
      

      This fails with the following error message:

      [INFO] Working directory: C:\Users\msheimhu\workspace\fytools
      org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to branch SCM
      Provider message:
      The svn branch command failed.
      Command output:
      svn: Commit failed (details follow):
      svn: '/factority/fytools/branches' path not found
      

      Expected behaviour:
      ---------------------------------------------------

      The commit should use the URL from the POM, which is the correct one:

      http://svn.office.factority.de/factority/BRANCHES/fytools-1.1.1-SNAPSHOT
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            msheimhu Markus Heimhuber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: