Issue Details (XML | Word | Printable)

Key: MPPMD-4
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Vincent Massol
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1.x PMD Plugin

Fails when no pmd errors

Created: 01/Jul/03 04:38 PM   Updated: 30/Nov/03 09:56 PM   Resolved: 03/Jul/03 07:26 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File pmd.patch (0.9 kB)



 Description  « Hide

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



Martin Skopp added a comment - 02/Jul/03 04:14 AM

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.


Martin Skopp added a comment - 02/Jul/03 04:50 AM

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.


Vincent Massol added a comment - 03/Jul/03 07:26 AM

Applied Martin's patch.