[
https://jira.codehaus.org/browse/MBUILDNUM-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Voronetskyy Yevgen reopened MBUILDNUM-86:
-----------------------------------------
Some people have the following exception :
[INFO] Error configuring: org.codehaus.mojo:buildnumber-maven-plugin. Reason:
ERROR: Cannot override read-only parameter: shortRevisionLength in goal:
buildnumber:create
I could not reproduce this behavior in my projects, but it seems very possible.
The person who encountered this has been modified the generated
META-INF/maven/plugin.xml to make the shortRevisionLength editable = true.
I looked at CreateMojo.java and actually the field shortRevisionLength has the
@readonly annotation.
This annotation should be removed.
> Short Revision Id for Git SCM
> -----------------------------
>
> Key: MBUILDNUM-86
> URL: https://jira.codehaus.org/browse/MBUILDNUM-86
> Project: Mojo Build Number Maven Plugin
> Issue Type: New Feature
> Affects Versions: 1.1
> Environment: only Git support
> Reporter: Voronetskyy Yevgen
> Assignee: Olivier Lamy
> Priority: Minor
> Fix For: 1.1
>
> Attachments: patchBuildNumber-ShortRevisionLength.txt,
> patch-MBuild-GitShortRev-Documentation.txt
>
>
> The main idea of this feature is to provide an additional parameter to
> buildNumeber plugin to get out from SCM the short revision number.
> Exemple - the git 'normal' commit ID is something like this :
> b0c1c69be579175e63eeb1c056d607f01ab61e96
> What the improvement should do is to take the parameter
> <shortRevisionLength>5</shortRevisionLength> from the config and ask the
> command git rev-parse --short=5 to give a short id. The result should be
> b0c1c.
> The work I made consists of 2 separate patches:
> 1. BuildNumberPlugin
> 2. maven-scm-plugin 1.7-SNAPSHOT
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email