Github user ChristianSchulte commented on the pull request:

    https://github.com/apache/maven/pull/32#issuecomment-77428933
  
    I have no experience with the cobertura plugin. I just added
    
    ```
    <reportPlugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>cobertura-maven-plugin</artifactId>
      <version>2.7</version>
    </reportPlugin>
    ```
    
    to the configuration of the site plugin of a working project. Executing 
`mvn site -e` with Maven 3.2.5, site building succeeds. Using Maven 
3.3.0-SNAPSHOT with the latest changes to head, the following exception is 
thrown.
    
    ```
    [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
    ```
    
    That exception is not thrown using Maven 3.2.5. There still seems to be a 
class loading issue.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to