Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.6
-
Component/s: None
-
Labels:None
-
Environment:multiproject plugin from CVS, maven 1.0rc3, win2k, JDK1.4.2
-
Number of attachments :
Description
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
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