You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David SPORN (JIRA)" <ji...@apache.org> on 2015/04/28 11:35:06 UTC

[jira] [Comment Edited] (MRELEASE-701) maven:prepare failed with GIT SCM in multimodule project with quite same name

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

David SPORN edited comment on MRELEASE-701 at 4/28/15 9:34 AM:
---------------------------------------------------------------

This Bug is caused by http://issues.apache.org/jira/browse/SCM-695


was (Author: sporniket):
This Bug is caused by http://jira.codehaus.org/browse/SCM-695

> maven:prepare failed with GIT SCM in multimodule project with quite same name
> -----------------------------------------------------------------------------
>
>                 Key: MRELEASE-701
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-701
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: Git, prepare
>    Affects Versions: 2.2.1
>         Environment: Windows, Maven 3, GIT
>            Reporter: jurevert
>            Priority: Minor
>
> In multimodule projects have directory tree like :
> {code}
> SampleProject
> |-- pom.xml (Modules : SampleProjectEAR,SampleProjectWeb,SampleProjectCommons)
> SampleProjectEAR
> |-- pom.xml (Parent : SampleProject pom.xml)
> SampleProjectWeb
> |-- pom.xml (Parent : SampleProject pom.xml)
> SampleProjectCommons
> |-- pom.xml (Parent : SampleProject pom.xml)
> {code}
> While running :
> {code}
> mvn release:prepare
> {code}
> GIT will try to commit files under but the erroe bellow appear :
> {code}
> build	11-Aug-2011 11:04:42	[INFO] --- maven-release-plugin:2.2.1:prepare (default-cli) @ WelcomTutorial ---
> build	11-Aug-2011 11:04:44	[INFO] Resuming release from phase 'scm-commit-release'
> build	11-Aug-2011 11:04:44	[INFO] Checking in modified POMs...
> build	11-Aug-2011 11:04:44	[INFO] Executing: /bin/sh -c cd /app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1/SampleProject && git add -- pom.xml Commons/pom.xml Web/pom.xml EAR/pom.xml
> [...]
> build	11-Aug-2011 11:04:44	[INFO] SampleProject .................................... FAILURE [1.734s]
> [...]
> build	11-Aug-2011 11:04:44	[INFO] BUILD FAILURE
> [...]
> build	11-Aug-2011 11:04:44	[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:prepare (default-cli) on project SampleProject: Unable to commit files
> {code}
> The problem is that GIT is trying to add files :
> *Commons/pom.xml Web/pom.xml EAR/pom.xml*
> instead of
> [Path]/SampleProjectCommons/pom.xml [Path]/SampleProjectCommonsWeb/pom.xml [Path]/SampleProjectCommonsEAR/pom.xml
> If you rename the project *SampleProject*, the BUILD is succeed.
> Julien



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