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

release:prepare goal uses parent directory of real repository location

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Pending Closed
    • Affects Version/s: 2.5.1
    • Fix Version/s: None
    • Component/s: prepare
    • Labels:
      None

      Description

      I have this in my pom.xml:

      <scm>
          <connection>scm:git:http://my-git-server.example.com/git/somebody/my-project.git</connection>
          <developerConnection>ssh://git@my-git-server.example.com:10022/somebody/my-project.git</developerConnection>
          <url>http://my-git-server.example.com/git/somebody/my-project</url>
      </scm>
      

      When I do a mvn release:prepare, it tries to push the tag to ssh://git@my-git-server.example.com:10022/somebody/ instead of ssh://git@my-git-server.example.com:10022/somebody/my-project.git, causing the release prepare to fail with "Access denied".

      When I add a "fake file" at the end, like:

      <scm>
          <connection>scm:git:http://my-git-server.example.com/git/somebody/my-project.git/.git</connection>
          <developerConnection>ssh://git@my-git-server.example.com:10022/somebody/my-project.gi/.gitt</developerConnection>
          <url>http://my-git-server.example.com/git/somebody/my-project</url>
      </scm>
      

      the release:prepare works, but release:perform fails because it is using the URL as-is.

        Attachments

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              rabe-jens Jens Rabe
            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: