Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

How to add PMD to maven ?

Thread view: 
comp.lang.java.programmer - 23 Feb 2007 22:25 GMT
Anyone generated reports using PMD?
If you did, then pl. give me the steps/ examples to add PMD plugin to
maven.

I couldn't find proper documentation from web. Any sample pom.xml will
help.
Greg R. Broderick - 24 Feb 2007 18:34 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.