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

release:perform pushes tag to origin rather than repository specified in POM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.3
    • None
    • Maven 2.2.1, Windows 7

    Description

      The release:perform performs "git push" rather than "git push http://example.com/repository". This causes problems if the "origin" remote is not the same as the scm.connection defined in the POM.

      Here is my Maven output:

      [INFO] Checking in modified POMs...
      [INFO] Executing: cmd.exe /X /C "git add pom.xml"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Executing: cmd.exe /X /C "git status"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Executing: cmd.exe /X /C "git commit --verbose -F C:\Users\aga\AppData\Local\Temp\maven-scm-2078623183.commit pom.xml"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Executing: cmd.exe /X /C "git push"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Tagging release with the label jetpackager-0.0.5...
      [INFO] Executing: cmd.exe /X /C "git tag -F C:\Users\aga\AppData\Local\Temp\maven-scm-1285436859.commit jetpackager-0.0.5"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Executing: cmd.exe /X /C "git push origin jetpackager-0.0.5"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Executing: cmd.exe /X /C "git ls-files"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Transforming 'JetPackager'...
      [INFO] Not removing release POMs
      [INFO] Checking in modified POMs...
      [INFO] Executing: cmd.exe /X /C "git add pom.xml"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Executing: cmd.exe /X /C "git status"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Executing: cmd.exe /X /C "git commit --verbose -F C:\Users\aga\AppData\Local\Temp\maven-scm-882097787.commit pom.xml"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Executing: cmd.exe /X /C "git push"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager
      [INFO] Release preparation complete.
      [INFO] [release:perform

      {execution: default-cli}

      ]
      [INFO] Checking out the project to perform the release ...
      [INFO] Executing: cmd.exe /X /C "git clone git://github.com/alexandergeorge/jetpackager-maven-plugin.git c:\dev\workspace-32bit\jetpackager\target\checkout"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager\target
      [INFO] Executing: cmd.exe /X /C "git pull git://github.com/alexandergeorge/jetpackager-maven-plugin.git tag jetpackager-0.0.5"
      [INFO] Working directory: c:\dev\workspace-32bit\jetpackager\target\checkout
      [ERROR] The git-pull command failed.
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------

      And here is my pom.xml:

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schem
      http://maven.apache.org/maven-v4_0_0.xsd">
      ...
      <scm>
      <connection>scm:git:git://git@github.com/alexandergeorge/jetpackager-maven-plugin.git</connection>
      </scm>
      ...
      </project>

      Attachments

        Activity

          People

            Unassigned Unassigned
            alexandergeorge Alex Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: