[ 
http://jira.codehaus.org/browse/MOJO-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=150943#action_150943
 ] 

Jerome Lacoste commented on MOJO-1235:
--------------------------------------

This can also fail if someone has a svn official repository and uses git-svn 
for local tracking.

A simple way to fix the issue is to add a property failIfCantIdRevision, 
(defaults to true ? keep compatibility) and change

http://mojo.codehaus.org/buildnumber-maven-plugin/xref/org/codehaus/mojo/build/BuildMojo.html#377

into

try {
  revision = getRevision();
} catch (MojoExecutionException e){
  if (failIfCantIdRevision) {
    throw e;
  }
}

The property should be overridable on the command line...

> buildnumber plugin must not failed if there is no .svn
> ------------------------------------------------------
>
>                 Key: MOJO-1235
>                 URL: http://jira.codehaus.org/browse/MOJO-1235
>             Project: Mojo
>          Issue Type: Improvement
>          Components: buildnumber
>            Reporter: Olivier Lamy
>            Assignee: Olivier Lamy
>
> If there is no .svn metadata the plugin failed.
> This can happend in a source distribution if the plugin is used during the 
> build.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to