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

release:prepare attempts to push to different git repo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.5.2
    • None
    • prepare
    • None

    Description

      The documentation describing the scm format is at:
      https://maven.apache.org/scm/git.html
      and it suggests the format

      scm:git:ssh://github.com/path_to_repository
      

      Ours is similar to (redacted)

        <scm>
              <url>https://github.com/mycompany/my_api/</url>
          <developerConnection>scm:git:ssh://git@github.com:mycompany/my_api.git</developerConnection>
                         <connection>scm:git:ssh://git@github.com:mycompany/my_api.git</connection>
        </scm>
      

      When the maven-release-plugin attempts to push, it specifies

       Executing: /bin/sh -c cd /home/ssuehs/work/my_api && git push ssh://git@github.com:mycompany/my_api.git refs/heads/mvnreleasework:refs/heads/mvnreleasework
      

      Note the ssh. In deed, executing this from an interactive command prompt also does not work.

      Which is correct? The documentation? The plugin? Or could be I am just wrong.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ssuehsshango Steve Suehs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: