> Anyone generated reports using PMD?
> If you did, then pl. give me the steps/ examples to add PMD plugin to
> maven.
I'd suggest that you might get a better and faster response, if you posted
your query to the SourceForge forums for PMD. They're at
<http://sourceforge.net/forum/?group_id=56262>.
Cheers!

Signature
---------------------------------------------------------------------
Greg R. Broderick gregb+usenet200612@blackholio.dyndns.org
A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------
comp.lang.java.programmer - 26 Feb 2007 16:30 GMT
Thanks for the info. I posted my question there.
On Feb 24, 12:34 pm, "Greg R. Broderick" <gregb
+usenet200...@blackholio.dyndns.org> wrote:
> > Anyone generated reports using PMD?
> > If you did, then pl. give me the steps/ examples to add PMD plugin to
[quoted text clipped - 13 lines]
> Q. What is the most annoying thing on Usenet?
> ---------------------------------------------------------------------
comp.lang.java.programmer - 09 Mar 2007 21:38 GMT
I added the PMD to maven.
Here is the entry I added to pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
I am getting the following error while running the script.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'pmd'.
[INFO]
--------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO]
--------------------------------------------------------------------
----
[INFO] The plugin 'org.apache.maven.plugins:maven-pmd-plugin' does not
exis
t or no valid version could be found
[INFO]
--------------------------------------------------------------------
Alexander Shvets - 10 Mar 2007 13:29 GMT
> I added the PMD to maven.
>
[quoted text clipped - 21 lines]
> [INFO]
> --------------------------------------------------------------------
it means that your default repository does not have this artifact. Maybe
you have to specify repository location explicitly.
At this location:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/
there are few versions.
Pick one of them. In your pom.xml file you can add
<repositories>
<repository>
<id>central1</id>
<name>Central Repository 1</name>
<url>http://repo1.maven.org/maven2</url>
</repository>
</repositories>
or some other location.
Alexander.
Anand Balasubramanian - 12 Mar 2007 21:43 GMT
Thanks Alexander. It worked.