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

When the base pom is a subdirectory, tagging fails in GIT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.3.2, 2.5
    • None
    • Git, scm
    • None
    • linux (fedora 20)

    Description

      (NOTE, this is not the same as MRELEASE-875. I think)

      Given a GIT checkout with a project structure of:

      project/
      dir1/pom.xml
      dir2/pom.xml

      Given an <scm> config of:

      <developerConnection>scm:git:ssh://git@github.com:bbaetz/maven-release-bug.git</developerConnection>

      the maven-release plugin correctly commits the pom file, but fails to tag. The problem is that its stripping off one level of the URL, and doing:

      [INFO] Executing: /bin/sh -c cd /home/bbaetz/src/subdir-project && git push ssh://git@github.com:bbaetz refs/tags/project-1.0.0

      which is wrong for git

      To reproduce, fork https://github.com/bbaetz/maven-release-bug/, change the scm settings to your own, and run:

      mvn -X -B -f build/pom.xml -DdevelopmentVersion=1.0.1-SNAPSHOT -DreleaseVersion=1.0.0 -Dresume=false release:prepare release:perform

      I've tried various combinations of maven-release-plugin and maven-scm-plugin versions, with no luck

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bbaetz Bradley Baetz
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: