I am unable to run Source xref and PMD reports when I use non Maven standard directory
layout. (Please don't flame for not using Maven's directory layout. Limitation exists
for other reasons.)
My directory layout:
/projects/_maven
/projects/_maven/plugins
/projects/_maven/repository
/projects/myproject (myproject is called mf)
under myproject:
/build/script (contains project.xml, project.properties, build.properties)
/src/java
/src/descriptors (application.xml, ejb-jar.xml, web.xml)
/src/html
/src/images
/target
BTW, I am using Maven beta 10 build.
The jxr plugin fails and reports that javadocdir:null. Line 90 Column 31.
[snip]
maven-jxr-plugin:report:
[mkdir] Created dir: C:\projects\mf\target\docs\xref
[echo]
[copy] Copying 1 file to C:\projects\mf\target\docs\xref
javadocdir:null
BUILD FAILED
File...... file:/C:/projects/_maven/plugins/maven-jxr-plugin-1.2-SNAPSHOT/
Element... jxr:jxr
Line...... 90
Column.... 31
java.lang.reflect.InvocationTargetException
Total time: 1 minutes 0 seconds
[/snip]
When I comment out jxr plugin report and run again for PMD report, I get an error that
the raw report cannot be found under build/script directory. THe pmd-raw-report.xml is
generated in c:/projects/mf/target.
[snip]
maven-tasklist-plugin:report:
[echo] Generating tasklist ...
[echo] Generating the PMD Report...
pmd:report:
[echo] Running the PMD task with \projects\_maven\plugins\maven-pmd-plugin-1
.1-SNAPSHOT\plugin-resources/rulesets/basic.xml,\projects\_maven\plugins\maven-p
md-plugin-1.1-SNAPSHOT\plugin-resources/rulesets/unusedcode.xml,\projects\_maven
\plugins\maven-pmd-plugin-1.1-SNAPSHOT\plugin-resources/rulesets/imports.xml ...
BUILD FAILED
File...... file:/C:/projects/_maven/plugins/maven-pmd-plugin-1.1-SNAPSHOT/
Element... pmd
Line...... 83
Column.... 51
C:\Projects\mf\build\script\projects\mf\target\pmd-raw-report.xml (The system ca
nnot find the path specified)
Total time: 1 minutes 10 seconds
[/snip]
FYI, my build.properties has the following properties overridden:
maven.home.local=/projects
project.home=/projects/myproject
maven.build.dir=${project.home}/target
maven.build.src=${project.home}/src/java
maven.build.conf=${project.home}/build/script
maven.repo.local=${maven.home.local}/_maven/repository
maven.plugin.unpacked.dir=${maven.home.local}/_maven/plugins
Any help is much appreciated. These reports are very useful.
__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
Get AOL Instant Messenger 5.1 free of charge. Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]