maven findbugs plugin exception
-------------------------------
Key: MOJO-326
URL: http://jira.codehaus.org/browse/MOJO-326
Project: Mojo
Type: Bug
Versions: 1.0
Reporter: Andy
when running the findbugs plugin (latest version) i am getting the exception
below.
the problem is that findbugs depends on dom4j version 1.6.1. dom4j itself
depends
on some other projects, including jaxen version 1.1-beta6. however, the jaxen
dependy is
only optional according to the dom4j.pom file. i do not know the strategy
concerning
optional dependencies. in my case the jaxen jar was not present in my
repository,
thus it obviously could not be included. to make sure that the jaxen jar is
always present, i added
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1-beta-6</version>
</dependency>
to the findbugs-maven-plugin-1.0-SNAPSHOT.pom, to make sure the jaxen jar will
be included. it'd be nice if someone could fix this in the repository.
regards,
Andy
[INFO] org/jaxen/JaxenException
[INFO]
-------------------------------------------------------------------------
---
[INFO] Trace
java.lang.NoClassDefFoundError: org/jaxen/JaxenException
at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189)
at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:125)
at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:88)
at
edu.umd.cs.findbugs.DetectorFactoryCollection.loadPlugins(DetectorFac
toryCollection.java:188)
at
edu.umd.cs.findbugs.DetectorFactoryCollection.<init>(DetectorFactoryC
ollection.java:52)
at
edu.umd.cs.findbugs.DetectorFactoryCollection.instance(DetectorFactor
yCollection.java:73)
at
edu.umd.cs.findbugs.config.UserPreferences.enableAllDetectors(UserPre
ferences.java:314)
at
org.codehaus.mojo.findbugs.FindBugsMojo.initialiseFindBugs(FindBugsMo
jo.java:312)
at
org.codehaus.mojo.findbugs.FindBugsMojo.executeReport(FindBugsMojo.ja
va:254)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven
Report.java:98)
at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenR
eport.java:73)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:415)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:531)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:485)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:455)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
--
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