maven-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14614230#comment-14614230
] 

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 https://github.com/exquery/exquery/blob/master/exquery-distribution/pom.xml

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
exquery-distribution-0.1.31
[INFO] Working directory: /private/tmp/exquery
[INFO] Executing: /bin/sh -c cd /private/tmp/exquery && git push https://github.com/exquery
refs/tags/exquery-distribution-0.1.31

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 'https://github.com/exquery/' not found

As you can see it is trying to use the URL `https://github.com/exquery/` for the git push,
but my pom specifies that it should be `https://github.com/exquery/exquery.git`. 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: https://issues.apache.org/jira/browse/MRELEASE-767
>             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://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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message