You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jurevert (JIRA)" <ji...@codehaus.org> on 2011/08/11 15:36:42 UTC
[jira] Created: (MRELEASE-701) maven:prepare failed with GIT SCM in
multimodule project with quite same name
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 2.x Release Plugin
Issue Type: Bug
Components: 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRELEASE-701) maven:prepare failed with GIT SCM in
multimodule project with quite same name
Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRELEASE-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MRELEASE-701:
------------------------------------
Component/s: Git
> 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 2.x 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira