[
https://jira.codehaus.org/browse/MFINDBUGS-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283563#comment-283563
]
Christoph Kutzinski commented on MFINDBUGS-147:
-----------------------------------------------
Seems like the findbugs-plugin resp. findbugs itself is bringing in the
incompatible ObjectType via xalan 2.6.0
I got the source and ran mvn dependency:tree on it:
...
[INFO] +- com.google.code.findbugs:findbugs-ant:jar:1.3.9:compile
[INFO] | \- com.google.code.findbugs:findbugs:jar:1.3.9:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] | +- com.google.code.findbugs:jFormatString:jar:1.3.9:compile
[INFO] | +- com.google.code.findbugs:annotations:jar:1.3.9:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | +- jaxen:jaxen:jar:1.1.1:compile
[INFO] | | +- jdom:jdom:jar:1.0:compile
[INFO] | | \- xom:xom:jar:1.0:compile
[INFO] | | +- xerces:xmlParserAPIs:jar:2.6.2:compile
[INFO] | | +- xalan:xalan:jar:2.6.0:compile
...
I've done a test and tried to exclude xalan in my POM, by adding an exclusion
to jaxen:
<plugin>
...
<dependencies>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1.1</version>
<exclusions>
<exclusion>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
And now it works!
Can't you add the exlusion to the findbugs plugin's POM? Then it should work
for all users out of the box
> findbugs:gui fails
> ------------------
>
> Key: MFINDBUGS-147
> URL: https://jira.codehaus.org/browse/MFINDBUGS-147
> Project: Maven 2.x FindBugs Plugin
> Issue Type: Bug
> Reporter: Kohsuke Kawaguchi
> Assignee: Garvin LeClaire
>
> {noformat}
> [INFO] [findbugs:gui {execution: default-cli}]
> [INFO] File Encoding is UTF-8
> BCEL class compatability error.
> The version of class org.apache.bcel.generic.ObjectType found was not
> compatible with
> FindBugs. Please remove any BCEL libraries that may be interfering. This
> may happen
> if you have an old version of BCEL or a library that includes an old version
> of BCEL
> in an "endorsed" directory.
> {noformat}
> See other people indicating the issue, such as
> http://maven-users.828.n2.nabble.com/Running-Findbugs-with-Maven-fails-td5534514.html
> and
> http://stackoverflow.com/questions/627269/findbugs-not-accepting-bcel-jar-in-ant-script
--
This message is automatically generated by JIRA.
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