Maven SCM
  1. Maven SCM
  2. SCM-546

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.3
    • Component/s: maven-scm-provider-git
    • Labels:
      None
    • Environment:
      Maven 2.2.1, Windows 7
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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>

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Alex Anderson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: