Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.0
-
Labels:None
Description
I have some maven projects that don't have any classes in them (one is an ear project, the other a ressource jar).
Findbugs fails on them returning a NoClassesFoundToAnalyzeException. I'm not sure if the plugin can fix this or if it's a findbugs issue. And yes, the solution below is probably the more efficient way to handle this. I think a more meaningful error could be returned by the plugin though (a catch around FindBugsMojo line 740)
The workaround add the code below to these projects poms:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>2.0.1.3.2</version> <configuration> <skip>true</skip> </configuration> </plugin>
Let me know more about your set up.
We have been using it for EAR builds without any of the issues you state.
Garvin