Issue Details (XML | Word | Printable)

Key: MPPMD-12
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: dion gillard
Reporter: Michael Mattox
Votes: 0
Watchers: 1
Operations

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

Reports are run for my main maven project when running multiproject:site

Created: 16/Jun/04 08:35 AM   Updated: 29/Jul/04 10:35 AM   Resolved: 29/Jul/04 10:35 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive maven_log.zip (88 kB)
2. Text File project.properties (2 kB)
3. XML File project.xml (5 kB)

Environment: multiproject plugin from CVS, maven 1.0rc3, win2k, JDK1.4.2


 Description  « Hide

Reports are run for my main maven project when running multiproject:site, even though I have the main maven project in the multiproject.excludes. The result is the PMD plugin fails because there is no src/java directory:

from project.properties:

maven.multiproject.basedir=${basedir}/../
maven.multiproject.includes=**/project.xml
maven.multiproject.excludes=../project.xml,./project.xml,maven/project.xml

from maven.log:

[echo] Generating the PMD Report...
pmd:report:
[echo] Running the PMD task with C:\Documents and Settings\mmattox\.maven\plugins\maven-pmd-plugin-1.4\plugin-resources/rulesets/basic.xml,C:\Documents and Settings\mmattox\.maven\plugins\maven-pmd-plugin-1.4\plugin-resources/rulesets/unusedcode.xml,C:\Documents and Settings\mmattox\.maven\plugins\maven-pmd-plugin-1.4\plugin-resources/rulesets/imports.xml ...

BUILD FAILED
File...... C:\Documents and Settings\mmattox\.maven\plugins\maven-pmd-plugin-1.4\plugin.jelly
Element... pmd
Line...... 115
Column.... 51
C:\maven\sources\maven\src\java not found.
Total time: 13 minutes 30 seconds
Finished at: Wed Jun 16 14:28:21 CEST 2004



Michael Mattox made changes - 16/Jun/04 08:37 AM
Field Original Value New Value
Attachment project.properties [ 12283 ]
Michael Mattox made changes - 16/Jun/04 08:37 AM
Attachment project.xml [ 12284 ]
Michael Mattox made changes - 16/Jun/04 08:37 AM
Attachment maven_log.zip [ 12285 ]
Harald Ommang added a comment - 16/Jun/04 08:56 AM

I definitely want this plugin to run reports on the main project!

The main project should be used with aggregation reports, such as dashboard or dependency convergence. There is no point in havind PMD listed as a report in a project wihtout source.

Replace your <reports> in the main project's project.xml with (e.g.) this:

<reports>
<report>maven-multiproject-plugin</report>
<report>maven-dashboard-plugin</report>
</reports>

Harald


Michael Mattox added a comment - 16/Jun/04 09:03 AM

All my projects extend this "main project". Therefore if I remove the reports from my main project, I have to add the reports to all 17 of my projects. Is there an easier way? Should I introduce another project in the hiearchy? Right now I have:

aggregate main - project

Should I change it to:

aggregate main - source project main - project

and declare the dashboard reports in main, and all my source reports in source project main? I'm not sure if inheritance works with 3 levels, the user guide is a little uncertain there.

-Michael

PS: Creating a src/java directory in my aggregate main project fixed the problem..


dion gillard made changes - 27/Jul/04 10:12 PM
Key MPMULTIPROJECT-37 MPPMD-12
Affects Version/s 1.3 [ 10665 ]
Project maven-multiproject-plugin [ 10349 ] maven-pmd-plugin [ 10358 ]
dion gillard made changes - 29/Jul/04 10:35 AM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]
Fix Version/s 1.6 [ 11043 ]