Janhavi,

This should do the trick! Your version was incorrect and the
pluginsrepository needs to point to codehaus...

*mvn findbugs:findbugs*

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 <modelVersion>4.0.0</modelVersion>
 <groupId>com.accenture.test</groupId>
 <artifactId>mycooltest</artifactId>
 <packaging>jar</packaging>
 <version>1.0-SNAPSHOT</version>
 <name>Maven Quick Start Archetype</name>
 <url>http://maven.apache.org</url>
 <dependencies>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>3.8.1</version>
     <scope>test</scope>
   </dependency>
 </dependencies>

 <pluginRepositories>
   <pluginRepository>
     <id>Maven Snapshots</id>
     <url>http://snapshots.maven.codehaus.org/maven2</url>
   </pluginRepository>
 </pluginRepositories>

 <reporting>
     <plugins>
         <plugin>
 <groupId>maven-plugins</groupId>
 <artifactId>maven-findbugs-plugin</artifactId>
 <version>1.0-SNAPSHOT</version>
         </plugin>
     </plugins>
 </reporting>
</project>




On 6/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

Can somebody please tell me how to add "maven-findbugs-plugin" in
pom.xml of maven 2.0 and the required changes to do that? I am getting
the following error:



>mvn findbugs:findbugs

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'findbugs'.

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] The plugin 'org.apache.maven.plugins:maven-findbugs-plugin' does
not exis

t or no valid version could be found

[INFO]
------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO]
------------------------------------------------------------------------

[INFO] Total time: < 1 second

[INFO] Finished at: Fri Jun 09 11:50:59 GMT+05:30 2006

[INFO] Final Memory: 1M/2M

[INFO]
------------------------------------------------------------------------



Regards,

Janhavi Phirke



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.


Reply via email to