Hi, After adding navigation.xml under xdocs foler, my problem of viewing the report from my main page has been solver. :) Thanks a lot.
However when I view the report, it shows me the violations but does not
display the file name fow which the violation occured. I had a look at the
xml generated pmd-report.xml under generated-xdocs folder, the value for the
subsection is <<<subsection name="">>>>
In pmd-format.dvsl file under the PMD plugin forlder, the value to set the
subsection name is
<<<<<<<<<<<<<<<<<<<<<
#match("file")
#set ($currFile = $context.toolbox.pathtool.getPackagePath($attrib.name))
<subsection name="$currFile">
<table>
<tr>
<th>Violation</th>
<th>Line</th>
</tr>
$context.applyTemplates()
</table>
</subsection>
#end
>>>>>>>>>>>>>>>>>>>>>>>>>
Also when I run pmd, for some files it gives me an error message like
Error parsing com\test\logproc\testmedia\TestMediaEntrySchemaMap.java:
java.io.I
OException: Invalid source file:
com\test\logproc\testmedia\TestMediaEntrySchemaMap.java
Please Advice,
Thanks,
-Panna
-----Original Message-----
From: Goeschl Siegfried [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 6:57 AM
To: [EMAIL PROTECTED]
Subject: Problem while using PMD with Maven
You have to put navigation.xml into your xdoc directory of your project
Siegfried Goeschl
===========================================================
From: Panna Bodupali <[EMAIL PROTECTED]>
Subject: Problem while using PMD with Maven
Date: Tue, 14 Jan 2003 18:09:35 -0800
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_003F_01C2BBF8.19312590"
Hi,
Thanks a lot for the great help !!!!!.
Now I am able to use pmd.
The report pmd-report.html gets created in ${maven.build.dest}/docs as
defined in project.properties file.
But I am not able to see the report under the Project Report section.
In http://pmd.sourceforge.net/integrations.html for maven it is mentioned as
The generated report has to be added manually to the website which is
usually done with navigation.xml
<?xml version="1.0"?>
<menu name="Custom Reports">
<item name="PMD Report" href="/pmd-report.html"/>
<!-- Add more custom reports here -->
</menu>
I created a navigation.xml with the above contents. Where do we need to
place this navigation.xml file.
Currenty I have placed navigation.xml where my project.xml is present.
Please advice,
Thanks
Panna
-----Original Message-----
From: Goeschl Siegfried [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 3:13 AM
To: [EMAIL PROTECTED]
Subject: RE: Problem while using PMD with Maven
Hi folks,
sorry for the inconvenience ... :-)
The PMD file to be used is determined in project.xml found in
$MAVEN_HOME/plugins/pmd and the one referenced is pmd-1.0.jar.
I tried it with PMD 1.01 a while ago but it broke the plugin. You either
rename the version number in project.xml to pick the newest PMD from the
repository or stick to 1.0.
Or you wait a few days to give some time to have a look at it ...
Siegfried Goeschl
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
<<attachment: winmail.dat>>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
