maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabien Bousquet (JIRA)" <>
Subject [jira] Created: (SCM-606) UnsupportedOperationException on blame GIT
Date Thu, 10 Feb 2011 18:04:22 GMT
UnsupportedOperationException on blame GIT

                 Key: SCM-606
             Project: Maven SCM
          Issue Type: Wish
          Components: maven-scm-provider-git
    Affects Versions: 1.4
            Reporter: Fabien Bousquet
            Priority: Minor
         Attachments: GitBlame_UnsupportedOperationException.patch

Sometimes, running the blame command for GIT return an error for exit code. In this case,
Maven SCM throw an
UnsupportedOperationException :

Caused by: java.lang.UnsupportedOperationException
at org.apache.maven.scm.provider.git.gitexe.command.blame.GitBlameCommand.executeBlameCommand(

Is it possible to have the same way that others providers (SVN or TFS for example) which is
to return a 
result (with a success to false) ?

In other word replace :
  throw new UnsupportedOperationException();

by :

return new BlameScmResult(cl.toString(), "The git command failed.", stderr.getOutput(), false);

Another reason is that we do not know that this UnsupportedOperationException may be raised
because is 
a RuntimeException.

A similar problem : 

Do you agree with that ?

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message