﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17206	ant spotbugs gives  NoClassDefFoundError: org/slf4j/LoggerFactory	GerdP	Don-vip	"Tried to run ant spotbugs on josm core or plugin pbf.
See also ticket:17187#comment:12

I see this log:
{{{
C:\josm\core>ant spotbugs
Buildfile: C:\josm\core\build.xml

init-properties:

init:

javacc:

compile-cots:
    [javac] Compiling 17 source files to C:\josm\core\build

compile-jmapviewer:

compile:
    [javac] Compiling 120 source files to C:\josm\core\build

init-svn-revision-xml:

init-git-revision-xml:

create-revision:
   [delete] Deleting: C:\josm\core\REVISION.XML

check-schemas:

epsg-compile:

epsg:

dist:
     [echo] Revision 14698
   [delete] Deleting: C:\josm\core\dist\josm-custom.jar
      [jar] Building jar: C:\josm\core\dist\josm-custom.jar

spotbugs:
 [spotbugs] Executing SpotBugs FindBugsTask from ant task
 [spotbugs] Running SpotBugs...
 [spotbugs] java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
 [spotbugs]     at edu.umd.cs.findbugs.Version.<clinit>(Version.java:38)
 [spotbugs]     at edu.umd.cs.findbugs.Plugin.<init>(Plugin.java:119)
 [spotbugs]     at edu.umd.cs.findbugs.PluginLoader.constructMinimalPlugin(PluginLoader.java:1113)
 [spotbugs]     at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:714)
 [spotbugs]     at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:396)
 [spotbugs]     at edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1478)
 [spotbugs]     at edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1432)
 [spotbugs]     at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:150)
 [spotbugs]     at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:351)
 [spotbugs]     at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:77)
 [spotbugs]     at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:60)
 [spotbugs]     at edu.umd.cs.findbugs.FindBugs2.<clinit>(FindBugs2.java:86)
 [spotbugs] Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
 [spotbugs]     at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
 [spotbugs]     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 [spotbugs]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
 [spotbugs]     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 [spotbugs]     ... 12 more
 [spotbugs] Exception in thread ""main""
 [spotbugs] Java Result: 1
 [spotbugs] Output saved to spotbugs-josm.xml

BUILD SUCCESSFUL
Total time: 8 seconds

C:\josm\core>
}}}"	defect	closed	normal	19.01	Core		fixed	regression spotbugs	Don-vip
