Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Cannot Reproduce
-
Affects Version/s: 2.3.3
-
Fix Version/s: None
-
Labels:None
-
Environment:HideApache 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"ShowApache 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"
-
Number of attachments :
Description
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>
Do you have a test project to reproduce the error. All the test pass and we have been using this at my office without issue.
Garvin