maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "adam Retter (JIRA)" <>
Subject [jira] [Commented] (MRELEASE-767) releasing flat multi-module projects using git
Date Sun, 05 Jul 2015 12:17:05 GMT


adam Retter commented on MRELEASE-767:

[~struberg] [~jnorris] This is still happening on versions 2.5, 2.5.1 and 2.5.2. Can you re-open
the ticket please as this is not yet fixed.

My pom is here

When I call `mvn release:prepare` it eventually runs the commands:

[INFO] Tagging release with the label exquery-distribution-0.1.31...
[INFO] Executing: /bin/sh -c cd /private/tmp/exquery && git tag -F /var/folders/hd/3l5yqgy17zq2x07xtf9cj_zh0000gn/T/maven-scm-690537254.commit
[INFO] Working directory: /private/tmp/exquery
[INFO] Executing: /bin/sh -c cd /private/tmp/exquery && git push

Which then fails with the message:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli)
on project exquery-distribution: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] fatal: repository '' not found

As you can see it is trying to use the URL `` for the git push,
but my pom specifies that it should be ``. So it seems
that I cam still experiencing this truncation issue.

This is a CRITICAL SHOW-STOPPER for me as I cannot release my product. Can you please comment?

> releasing flat multi-module projects using git
> ----------------------------------------------
>                 Key: MRELEASE-767
>                 URL:
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.3.1
>         Environment: 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"
>            Reporter: Jeremy Norris
>            Assignee: Mark Struberg
>             Fix For: 2.5
> 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://</connection>
>   <developerConnection>scm:git:ssh://</developerConnection>
>   <tag>master</tag>
>   <url></url>
> </scm>
> In org/apache/maven/shared/release/util/ it does this indiscriminately:
> url = realignScmUrl( parentLevels, url );
> This will trim the repo url from 'ssh://' -> 'ssh://',
which will cause a failure when pushing the tag.
> This type of realignment is not appropriate when using a git scm type.

This message was sent by Atlassian JIRA

View raw message