[ http://jira.codehaus.org/browse/MRELEASE-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Corneliussen updated MRELEASE-524: --------------------------------------- Attachment: MRELEASE-524-batch-mode.patch Based on r983489 in https://svn.apache.org/repos/asf/maven/release/trunk Included commits: - [MRELEASE-524] Added test cases (by Lars Corneliussen<m...@lcorneliussen.de> on 09.08.2010 12:05:12) - [MRELEASE-524] command line versions don't seem to work on release:branch for specific format\n\no In interactive mode, the user was allways asked. Now he is only asked when the user did not specify versions explicitely. The fallback-suggestions on errors now are 1.0 for release, and 1.1-SNAPSHOT for development version. (by Lars Corneliussen<m...@lcorneliussen.de> on 05.05.2010 15:13:27) View changes online: http://github.com/lcorneliussen/maven-release/compare/473197249e1caf39ee2cee6d0efc8a288c30d0c3...2e99512130cf7c224b9c9fcedfef0b96448d1934 # created from http://lcorneliussen.de/utils/git-svn/github.com/lcorneliussen/maven-release/commits/MRELEASE-524-batch-mode > command line versions don't seem to work on release:branch for specific > format > -------------------------------------------------------------------------------- > > Key: MRELEASE-524 > URL: http://jira.codehaus.org/browse/MRELEASE-524 > Project: Maven 2.x Release Plugin > Issue Type: Bug > Components: branch > Affects Versions: 2.0 > Environment: maven 2.2.1 > Reporter: Max Schaefer > Attachments: MRELEASE-524-batch-mode.patch > > > I have tried passing versions for certain modules to the command line while > making a branch. The plugin ignores my parameters when running > release:branch. It injects the defaults if I pass parameters in batch mode. > E.g. this command taken from the documentation does not work. > mvn --batch-mode release:branch -DbranchName=my-branch-1.2 > -Dproject.rel.org.myCompany:projectA=1.2 \ > -Dproject.dev.org.myCompany:projectA=2.0-SNAPSHOT > release:prepare supports this specific format for setting these values at > command line. > Setting these values in a release.properties file e.g. > project.dev.org.myCompany\:projectA=2.0-SNAPSHOT > project.rel.org.myCompany\:projectA=1.2 > works also fine. > Specifying the default at commandline works also e.g. > mvn --batch-mode release:branch -DbranchName=my-branch-1.2 > -DreleaseVersion=1.2 \ > -DdevelopmentVersion=2.0-SNAPSHOT -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira