[ https://jira.codehaus.org/browse/MRELEASE-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364887#comment-364887 ]
David SPORN commented on MRELEASE-701: -------------------------------------- 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://jira.codehaus.org/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.1.6#6162)