[ http://jira.codehaus.org/browse/MRELEASE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161982#action_161982 ]
Andreas Dejung edited comment on MRELEASE-156 at 1/22/09 4:26 PM: ------------------------------------------------------------------ I found the place where tag message is created. In org.apache.maven.shared.release.phaseScmCommitPhase from the maven-release-manager project line 164 and 165: return MessageFormat.format( releaseDescriptor.getScmCommentPrefix() + messageFormat, new Object[]{releaseDescriptor.getScmReleaseLabel()} ); If that would be changed to String noTagMessageExtention=System.getProperty("noTagMessageExtention",null); if(noTagMessageExtention!=null){ return releaseDescriptor.getScmReleaseLabel(); }else{ return MessageFormat.format( releaseDescriptor.getScmCommentPrefix() + messageFormat, new Object[]{releaseDescriptor.getScmReleaseLabel()} ); } Then it would not change the message. So far so good. The problem I got now is I can not build the maven-release-manager. Or better the mvn install works fine but when I try to run the project I get : E:\eclipse3.4\test\tool-configuration\target\checkout>mvn release:prepare [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'release'. [INFO] ------------------------------------------------------------------------ [INFO] Building Tool configuration [INFO] task-segment: [release:prepare] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-release-plugin:2.0-beta-8:prepare' : Unable to find the mojo 'org.apache.maven.plugins:maven-release-plugin:2.0-beta-8:prepare' in the plugin 'org.apache.maven. plugins:maven-release-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.scm.manager.ScmManagerdefault. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Thu Jan 22 10:57:19 CST 2009 [INFO] Final Memory: 7M/14M [INFO] ------------------------------------------------------------------------ Any help on that ? Cheers Andreas was (Author: adejung): I found the place where tag message is created. In org.apache.maven.shared.release.phaseScmCommitPhase from the maven-release-manager project line 164 and 165: return MessageFormat.format( releaseDescriptor.getScmCommentPrefix() + messageFormat, new Object[]{releaseDescriptor.getScmReleaseLabel()} ); If that would be changed to String noTagMessageExtention=System.getProperty("noTagMessageExtention",null); if(noTagMessageExtention==null){ return releaseDescriptor.getScmReleaseLabel(); }else{ return MessageFormat.format( releaseDescriptor.getScmCommentPrefix() + messageFormat, new Object[]{releaseDescriptor.getScmReleaseLabel()} ); } Then it would not change the message. So far so good. The problem I got now is I can not build the maven-release-manager. Or better the mvn install works fine but when I try to run the project I get : E:\eclipse3.4\test\tool-configuration\target\checkout>mvn release:prepare [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'release'. [INFO] ------------------------------------------------------------------------ [INFO] Building Tool configuration [INFO] task-segment: [release:prepare] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-release-plugin:2.0-beta-8:prepare' : Unable to find the mojo 'org.apache.maven.plugins:maven-release-plugin:2.0-beta-8:prepare' in the plugin 'org.apache.maven. plugins:maven-release-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.scm.manager.ScmManagerdefault. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Thu Jan 22 10:57:19 CST 2009 [INFO] Final Memory: 7M/14M [INFO] ------------------------------------------------------------------------ Any help on that ? Cheers Andreas > Prompt for customizing commit comment during release preparation > ---------------------------------------------------------------- > > Key: MRELEASE-156 > URL: http://jira.codehaus.org/browse/MRELEASE-156 > Project: Maven 2.x Release Plugin > Issue Type: Improvement > Components: prepare > Affects Versions: 2.0-beta-4 > Reporter: Dário Oliveros > > Hi there, > I've been trying to use maven-release-plugin to prepare a release, but > whenever I do that, it fails since I have a SVN precommit hook that > integrates with an issue tracking system which in turn waits for a comment > containing an issue number. Since release plugin adds its own comment, such > as "[maven-release-plugin] prepare release ...", this integration fails. So > I was wondering if this could be prompted in the same way for the release and > next development iteration versions. > Thanks, > Dário -- 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