Geoff:
Thanks so much for your prompt reply!
I will definitely look at Ivy Roundup :)
I also tried to add dom4j - to no avail. I did try a number of different
things with no luck. This is my second go around trying to resolve this
issue - some months ago I gave up and simply included -all- FindBugs jars
with my project - it just made the releases larger that is realistically
necessary.
Anyway - thanks again!
Scot
On Thu, 23 Jul 2009, Geoff Clitheroe wrote:
Hi Scott,
I haven't used this but Ivy Round up is aimed at curing this problem
(bad POMs etc) by using the ability of Ivy to get definitions from one
place and jars from another.
http://code.google.com/p/ivyroundup/
It looks like there is a FindBug definition there that lists dom4j.
The FindBugs guy was at Google on sabbatical so I'm going to guess
they will have this sorted...
Cheers,
Geoff
On Thu, Jul 23, 2009 at 10:50 AM, Scot P. Floess<[email protected]> wrote:
All:
I am having some issues with getting FindBugs to work...
I went out to ibiblio to get the pom information for FindBugs. My ivy.xml
looks like the following:
<ivy-module version = "2.0">
<info organisation = "Keros" module = "FindBugs"/>
<dependencies>
<dependency org = "net.sourceforge.findbugs" name = "findbugs" rev
= "1.2.0"/>
</dependencies>
</ivy-module>
I have been getting the following exception:
[find-bugs:analyze] Exception in thread "main"
java.lang.NoClassDefFoundError: org/dom4j/DocumentException
[find-bugs:analyze] at
edu.umd.cs.findbugs.SortingBugReporter.<init>(SortingBugReporter.java:31)
[find-bugs:analyze] at
edu.umd.cs.findbugs.TextUICommandLine.configureEngine(TextUICommandLine.java:391)
[find-bugs:analyze] at
edu.umd.cs.findbugs.FindBugs.processCommandLine(FindBugs.java:1506)
[find-bugs:analyze] at
edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:728)
[find-bugs:analyze] Caused by: java.lang.ClassNotFoundException:
org.dom4j.DocumentException
[find-bugs:analyze] at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[find-bugs:analyze] at
java.security.AccessController.doPrivileged(Native Method)
[find-bugs:analyze] at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[find-bugs:analyze] at
java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[find-bugs:analyze] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[find-bugs:analyze] at
java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[find-bugs:analyze] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[find-bugs:analyze] ... 4 more
I did some google'ing and see some mention of there being issues with the
pom:
http://osdir.com/ml/java.findbugs.general/2006-10/msg00024.html
I tried to locate a pom at http://mojo.codehaus.org but didn't readily find
it - getting frustrated ;) This has been a problem for me for a while. I
had been including all FindBugs jars with my project - meaning I manually
downloaded FindBugs. However, I really -do not- like doing this as it
should not be necessary :)
Has anyone gotten FindBugs working in conjunction with Ivy??? I've tried a
number of different things to no avail :(
I do use Ivy to download Beanshell, Ant Contrib and JavaCC - no issues
whatsoever...
I am running Ivy 2.0...
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros