Maven 1.x PMD Plugin

Fails when no pmd errors

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

Description

If there are no PMD errors, no XML report is generated and it fails during the report HTML generation.

I guess nobody noticed this because everyone had errors ...

-Vincent

Activity

Hide
Martin Skopp added a comment -

just recognized that I have it for a (trivial) sub-project here.
As a first workaround,

echo '<?xml version="1.0"?><pmd/>' > target/pmd-raw-report.xml

(linux/bash commandline)

before building the pmd report works.

Show
Martin Skopp added a comment - just recognized that I have it for a (trivial) sub-project here. As a first workaround, echo '<?xml version="1.0"?><pmd/>' > target/pmd-raw-report.xml (linux/bash commandline) before building the pmd report works.
Hide
Martin Skopp added a comment -

pmd.patch contains the changes I did for a workaround into the plugin.
Same change works well with my maven-beta-9 and the trivial subproject now performs well (Yes, one headache less!)
If you like the patch, Vincent, feel free to apply.

Show
Martin Skopp added a comment - pmd.patch contains the changes I did for a workaround into the plugin. Same change works well with my maven-beta-9 and the trivial subproject now performs well (Yes, one headache less!) If you like the patch, Vincent, feel free to apply.
Hide
Vincent Massol added a comment -

Applied Martin's patch.

Show
Vincent Massol added a comment - Applied Martin's patch.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: