maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petter Måhlén (JIRA) <>
Subject [jira] Commented: (SCM-442) Incorrect SCM URL constructed when using parent POM that is not in the parent directory
Date Thu, 30 Apr 2009 12:34:44 GMT


Petter Måhlén commented on SCM-442:

Apologies if I sounded aggressive in my question, I didn't mean to. I just wanted to understand
the 'wontfix' status, whether that meant that it was already fixed or a user error, just to
know if it would bite us again or not, so I can update our internal recommendations.

I haven't been able to test this further because I haven't been in the position of releasing
anything where it happens lately, hence the lack of answers to previous comments. Unfortunately,
with a launch looming large in the near future, I won't be able to find the time to do any
testing/investigations of this for a while. :(

> Incorrect SCM URL constructed when using parent POM that is not in the parent directory
> ---------------------------------------------------------------------------------------
>                 Key: SCM-442
>                 URL:
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-git
>    Affects Versions: 1.1
>            Reporter: Petter Måhlén
>            Assignee: Olivier Lamy
> We have a parent corporate POM that is not in the parent folder of each project. When
running release:perform, the correct (as specified) GIT SCM URL is not used, but instead a
URL is created by appending the Maven artifact name to the SCM URL of the parent corporate
POM project. Which doesn't make sense at all to me:
> 1. There is no requirement (and in fact bad practice in a lot of cases) that the POM
hierarchy should map exactly to the folder hierarchy. So a parent POM doesn't have to reside
in a parent directory.
> 2. There is no requirement (but maybe good practice) to have folder names in SCM be the
same as the artifact names. In our case, we have a bad artifact name that we want to keep
so as not to have to modify a lot of POMs, but we wanted a clearer repository name for the
new Git repository. 
> This is the error message from the 'mvn release:perform' command.
> INFO] Executing: /bin/sh -c cd /Users/pettermahlen/git/sponsoredlinks-client/target &&
git clone git:// /Users/pettermahlen/git/sponsoredlinks-client/target/checkout
> [INFO] Working directory: /Users/pettermahlen/git/sponsoredlinks-client/target
> [ERROR] The git-clone command failed.
> [INFO] ------------------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to checkout from SCM
> Provider message:
> The git-clone command failed.
> Command output:
> fatal: The remote end hung up unexpectedly
> The SCM configuration from the 'slg_client' pom.xml is;
>   <scm>
>     <connection>scm:git:git://</connection>
>   </scm>
> The workaround that I have found is to manually edit the file and
change to using the correct SCM URL.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message