For some reason, I cannot the Maven plugin cannot find its jars: 

(1) Create a build.properties in my local [lang] root with:
maven.repo.remote =  http://maven-plugins.sf.net

(2) From my local [lang] root, run:

maven -DartifactId=maven-findbugs-plugin -Dversion=1.0-SNAPSHOT
-DgroupId=maven plugin:download

Which gives me on the console:

__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

plugin:download:
    [echo] repo is 'http://maven-plugins.sf.net'
    [echo] Plugin downloaded, removing other versions
    [delete] Deleting 11 files from C:\Documents and
Settings\ggregory\.maven\plugins
    [delete] Deleted 5 directories from C:\Documents and
Settings\ggregory\.maven\plugins
BUILD SUCCESSFUL
Total time: 3 seconds
Finished at: Mon Feb 16 16:58:01 PST 2004

(3) Add a reports entry to project.xml:

Index: project.xml
===================================================================
retrieving revision 1.28
diff -u -r1.28 project.xml
--- project.xml 14 Feb 2004 01:16:24 -0000      1.28
+++ project.xml 17 Feb 2004 00:59:38 -0000
@@ -297,7 +297,8 @@
      <!-- <report>maven-changelog-plugin</report> -->
      <!-- <report>maven-changes-plugin</report> -->
      <report>maven-checkstyle-plugin</report>
-     <!-- <report>maven-clover-plugin</report> -->
+     <report>maven-findbugs-plugin</report>
+     <report>maven-clover-plugin</report>
      <!-- <report>maven-developer-activity-plugin</report> -->
      <!-- <report>maven-file-activity-plugin</report> -->
      <report>maven-javadoc-plugin</report>

(4) Run maven:

>maven site:generate
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

Attempting to download findbugs-0.6.5.jar.
WARNING: Failed to download findbugs-0.6.5.jar.
Attempting to download findbugs-ant-0.6.5.jar.
WARNING: Failed to download findbugs-ant-0.6.5.jar.
Attempting to download findbugs-coreplugin-0.6.5.jar.
WARNING: Failed to download findbugs-coreplugin-0.6.5.jar.
Attempting to download findbugs-bcel-0.6.5.jar.
WARNING: Failed to download findbugs-bcel-0.6.5.jar.
Attempting to download dom4j-1.4.jar.
WARNING: Failed to download dom4j-1.4.jar.

BUILD FAILED
File...... file:/C:/Documents and
Settings/ggregory/.maven/plugins/maven-xdoc-plugin-1.4/
Element... attainGoal
Line...... 575
Column.... 48
The build cannot continue because of the following unsatisfied dependencies:

findbugs-0.6.5.jar (try downloading from
http://www.cs.umd.edu/~pugh/java/bugs/)
findbugs-ant-0.6.5.jar (try downloading from
http://www.cs.umd.edu/~pugh/java/bugs/)
findbugs-coreplugin-0.6.5.jar (try downloading from
http://www.cs.umd.edu/~pugh/java/bugs/)
findbugs-bcel-0.6.5.jar (try downloading from
http://www.cs.umd.edu/~pugh/java/bugs/)
dom4j-1.4.jar (no download url specified)

Total time: 6 seconds
Finished at: Mon Feb 16 17:00:01 PST 2004

:-(

Gary

> -----Original Message-----
> From: Stephen Colebourne [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 16, 2004 16:17
> To: Jakarta Commons Developers List
> Subject: Re: [lang] Using FindBugs Maven plugin?
> 
> Its can be a useful part of the process in [lang]. We used it last time.
> 
> Stephen
> 
> ----- Original Message -----
> From: "Gary Gregory" <[EMAIL PROTECTED]>
> To: "'Jakarta Commons Developers List'" <[EMAIL PROTECTED]>
> Sent: Monday, February 16, 2004 11:57 PM
> Subject: [lang] Using FindBugs Maven plugin?
> 
> 
> > Any thoughts on using the FindBugs Maven plugin?
> >
> > A good patch was submitted base on FindBugs
> > (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26961)
> >
> > From FindBugs: http://www.cs.umd.edu/~pugh/java/bugs/
> >
> > "It is free software, distributed under the terms of the Lesser GNU
> Public
> > License.
> >
> > FindBugs requires JRE (or JDK) 1.4.0 or later to run.  However, it can
> > analyze programs compiled for any version of Java."
> >
> > Maven plugin:
> > http://maven-plugins.sourceforge.net/maven-findbugs-plugin/index.html
> >
> > Gary
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to