You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by "Scot P. Floess" <sf...@nc.rr.com> on 2009/07/23 00:50:07 UTC
FindBugs - doesn't seem to work correctly...
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
Re: FindBugs - doesn't seem to work correctly...
Posted by "Scot P. Floess" <sf...@nc.rr.com>.
Philip:
Thanks a bunch! I'm gonna look at this this weekend - much appreciated!
Scot
On Thu, 23 Jul 2009, PhilipJohnson wrote:
>
> I am using FindBugs successfully via IvyRoundup.
>
> Here is a link to Ant code that installs FindBugs via Ivy then invokes it on
> source code:
>
> http://hackystat-developer-example.googlecode.com/svn/trunk/findbugs.build.xml
>
> Good luck!
>
> Philip
> --
> View this message in context: http://www.nabble.com/FindBugs---doesn%27t-seem-to-work-correctly...-tp24616297p24637004.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
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
Re: FindBugs - doesn't seem to work correctly...
Posted by PhilipJohnson <jo...@hawaii.edu>.
I am using FindBugs successfully via IvyRoundup.
Here is a link to Ant code that installs FindBugs via Ivy then invokes it on
source code:
http://hackystat-developer-example.googlecode.com/svn/trunk/findbugs.build.xml
Good luck!
Philip
--
View this message in context: http://www.nabble.com/FindBugs---doesn%27t-seem-to-work-correctly...-tp24616297p24637004.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: FindBugs - doesn't seem to work correctly...
Posted by "Scot P. Floess" <sf...@nc.rr.com>.
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<sf...@nc.rr.com> 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
Re: FindBugs - doesn't seem to work correctly...
Posted by Geoff Clitheroe <g....@gmail.com>.
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<sf...@nc.rr.com> 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
>