Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.1
-
None
-
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /usr/share/maven
Java version: 1.6.0_31, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.4", arch: "x86_64", family: "mac"
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800) Maven home: /usr/share/maven Java version: 1.6.0_31, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.7.4", arch: "x86_64", family: "mac"
Description
When releasing a project as follows:
./parent/pom.xml
./module-a/pom.xml
./module-b/pom.xml
From the parent directory, with an scm config in the parent pom.xml (only) as follows:
<scm>
<connection>scm:git:ssh://github.com/repox.git</connection>
<developerConnection>scm:git:ssh://github.com/repox.git</developerConnection>
<tag>master</tag>
<url>https://github.com/view/repox.git</url>
</scm>
In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this indiscriminately:
url = realignScmUrl( parentLevels, url );
This will trim the repo url from 'ssh://github.com/repox.git' -> 'ssh://github.com', which will cause a failure when pushing the tag.
This type of realignment is not appropriate when using a git scm type.
Attachments
Issue Links
- is cloned by
-
MRELEASE-927 Releasing flat multi-module projects using git
- Open
- is duplicated by
-
MRELEASE-771 release:prepare tries to push tag with invalid Git URL
- Closed
- is related to
-
MRELEASE-939 release:perform uses incorrect ReleaseDescriptor.scmRelativePathProjectDirectory in nested multi-module project
- Open
-
MRELEASE-771 release:prepare tries to push tag with invalid Git URL
- Closed