findbugs:check - ClassNotFoundException: 
org.apache.commons.collections.ExtendedProperties
------------------------------------------------------------------------------------------

                 Key: MFINDBUGS-154
                 URL: https://jira.codehaus.org/browse/MFINDBUGS-154
             Project: Maven 2.x FindBugs Plugin
          Issue Type: Bug
    Affects Versions: 2.3.3
         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Java version: 1.7.0_01, vendor: Oracle Corporation
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
            Reporter: Sebastian Davids
            Priority: Blocker


in pom.xml:

...
<build>
...
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.3.3</version>
      </plugin>
...
</build>

mvn clean compile findbugs:check
[INFO] Scanning for projects...
...
[INFO] >>> findbugs-maven-plugin:2.3.3:check (default-cli) @ example >>>
[INFO]
[INFO] --- findbugs-maven-plugin:2.3.3:findbugs (findbugs) @ example ---
[WARNING] Error initializing: class 
org.codehaus.plexus.velocity.DefaultVelocityComponent
java.lang.NoClassDefFoundError: 
org/apache/commons/collections/ExtendedProperties
        at 
org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:164)
...
Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.collections.ExtendedProperties
        at 
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
...
[ERROR] Failed to execute goal 
org.codehaus.mojo:findbugs-maven-plugin:2.3.3:findbugs (findbugs) on project 
datatables: Execution findbugs of goal 
org.codehaus.mojo:findbugs-maven-plugin:2.3.3:findbugs failed: Unable to load 
the mojo 'findbugs' in the plugin 
'org.codehaus.mojo:findbugs-maven-plugin:2.3.3'. A required class is missing: 
org/apache/commons/collections/ExtendedProperties

@ Workaround @

...
<build>
...
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.3.3</version>
        <dependencies>
          <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>3.2.1</version>
          </dependency>
        </dependencies>
      </plugin>
...
</build>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to