jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x FindBugs Plugin
  • MFINDBUGS-61

Fail on project without any classes

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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>
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    MFINDBUGS-61.zip
    22/Jul/08 3:44 AM
    2 kB
    Henri Tremblay
    1. XML File
      MFINDBUGS-61/pom.xml 1 kB
    2. XML File
      MFINDBUGS-61/ut/pom.xml 0.5 kB
    3. File
      MFINDBUGS-61/ut/.../resources/app.properties 0.0 kB
    Download Zip
    Show
    Zip Archive
    MFINDBUGS-61.zip
    22/Jul/08 3:44 AM
    2 kB
    Henri Tremblay

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Garvin LeClaire added a comment - 21/Jul/08 4:35 PM

Let me know more about your set up.

We have been using it for EAR builds without any of the issues you state.

Garvin

Show
Garvin LeClaire added a comment - 21/Jul/08 4:35 PM Let me know more about your set up. We have been using it for EAR builds without any of the issues you state. Garvin
Hide
Permalink
Henri Tremblay added a comment - 22/Jul/08 3:44 AM

Here is an example. It's true that it works on an ear project. The module here is a ressource project. Just do mvn site on the parent.

You will need to change the plugin version first (in the parent pom) to something like 2.0-SNAPSHOT. Version 2.0.1.3.2 is a version I've created from a checkout I did last week from the trunk.

Show
Henri Tremblay added a comment - 22/Jul/08 3:44 AM Here is an example. It's true that it works on an ear project. The module here is a ressource project. Just do mvn site on the parent. You will need to change the plugin version first (in the parent pom) to something like 2.0-SNAPSHOT. Version 2.0.1.3.2 is a version I've created from a checkout I did last week from the trunk.

People

  • Assignee:
    Garvin LeClaire
    Reporter:
    Henri Tremblay
Vote (1)
Watch (1)

Dates

  • Created:
    17/Jul/08 12:42 PM
    Updated:
    06/Aug/08 5:45 AM
    Resolved:
    06/Aug/08 5:45 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.