Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5783

cobertura-maven-plugin:instrument failing NoClassDefFoundError: org/slf4j/LoggerFactory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1
    • None
    • None

    Description

      testing cobertura-maven-plugin from svn http://mojo.codehaus.org/cobertura-maven-plugin/
      IT pass with Maven 3.2.5 but fail with 3.3.0-SNAPSHOT

      (not the same issue as MNG-5779)

      [DEBUG] /bin/sh -c /opt/jdk1.7.0_71/jre/bin/java -Dlog4j.configuration=file:/tmp/log4j1560920244563737852config.properties -Xmx1024m net.sourceforge.cobertura.instrument.InstrumentMain --commandsfile /tmp/cobertura.4914644993417176752.cmdline
      [DEBUG] exit code: 1
      [DEBUG] --------------------
      [DEBUG]  Standard error from the Cobertura task:
      [DEBUG] --------------------
      [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
      	at net.sourceforge.cobertura.instrument.InstrumentMain$LoggerWrapper.<init>(InstrumentMain.java:165)
      	at net.sourceforge.cobertura.instrument.InstrumentMain$LoggerWrapper.<init>(InstrumentMain.java:164)
      	at net.sourceforge.cobertura.instrument.InstrumentMain.<clinit>(InstrumentMain.java:66)
      Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	... 3 more
      

      Attachments

        1. build-3.2.5.log
          127 kB
          Herve Boutemy
        2. build-3.3.0-SNAPSHOT.log
          72 kB
          Herve Boutemy

        Issue Links

          Activity

            People

              igorfie igorfie
              hboutemy Herve Boutemy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: