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 PMD Plugin
  • MPMD-73

Report generated even when no input files present

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.3
  • Fix Version/s: 2.5
  • Component/s: None
  • Labels:
    None

Description

Most maven report plugins will not generate a report if there are no input files. For example, a pom that defines the javadoc report plugin but has no source does not get a javadoc report.

However the pmd plugin generates empty pmd and cmd reports even for projects that have no source. In particular this means that parent poms that want to define pmd reports for the child modules get a "project reports" menu with pointless pmd/cmd pages. Given that poms lack a "pluginManagement" pom section, this is quite annoying.

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MPMD-101 PMD/CPD Reports Generated for Projects Using POM Packaging

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Ulli Hafner added a comment - 01/May/08 6:55 AM

This problem is especially annoying if you use individual rulesets for each maven "leaf" module: for findbugs and checkstyle (and PMD) we define in the root pom the config file with ${project.artifactId}/configuration.xml. For pmd this does not work because of this bug. The pmd module always wants to read the configuration for our parent modules that do not contain source (just a modules section in the pom). So we need to create a dummy file for each of our parent modules just to prevent pmd from reporting a build failure.

Show
Ulli Hafner added a comment - 01/May/08 6:55 AM This problem is especially annoying if you use individual rulesets for each maven "leaf" module: for findbugs and checkstyle (and PMD) we define in the root pom the config file with ${project.artifactId}/configuration.xml. For pmd this does not work because of this bug. The pmd module always wants to read the configuration for our parent modules that do not contain source (just a modules section in the pom). So we need to create a dummy file for each of our parent modules just to prevent pmd from reporting a build failure.

People

  • Assignee:
    Unassigned
    Reporter:
    Simon Kitching
Vote (3)
Watch (3)

Dates

  • Created:
    12/Jan/08 5:12 AM
    Updated:
    30/Apr/10 6:04 PM
    Resolved:
    30/Apr/10 6:04 PM
  • 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.