Hi Javed,
Thanks for your reply. My problem is solved yesterday only.
Yes...as you have said, I have added dependency for jaxen in my pom.xml but
I have kept the scope as "compile". Also after doing this, you have to
remove the <optional> tag for jaxen from pom of dom4j i.e. dom4j-1.6.1.pom.
After doing all above steps, I am able to run and generate the report for
finbugs.
On 6/13/06, javed mandary <[EMAIL PROTECTED]> wrote:
Hi Janhavi,
clearly there is a missing jar in your classplath the jaxen
jar try adding this dependency to your POM
*<dependency>
<artifactId>jaxen</artifactId>
<groupId>jaxen</groupId>
<version>1.1-beta-9</version>
<scope>runtime</scope>
</dependency>*
cheers,
Javed
On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> After pointing pluginsrepository to codehaus, I did "mvn install" and
> then "mvn findbugs:findbugs". But I am getting the following error:
>
> >mvn findbugs:findbugs
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'findbugs'.
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO] task-segment: [findbugs:findbugs]
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] Preparing findbugs:findbugs
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [findbugs:findbugs]
> [INFO] No threshold provided, using default threshold.
> Jaws uses plugin: \C:\Documents and
> Settings\janhavi.phirke\.m2\repository\findb
> ugs\coreplugin\0.9.3\coreplugin-0.9.3.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] org/jaxen/JaxenException
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: org/jaxen/JaxenException
> at
> org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
> at
> org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
> at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189)
> at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:125)
> at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:88)
> at
> edu.umd.cs.findbugs.DetectorFactoryCollection.loadPlugins(DetectorFac
> toryCollection.java:188)
> at
> edu.umd.cs.findbugs.DetectorFactoryCollection.<init>(DetectorFactoryC
> ollection.java:52)
> at
> edu.umd.cs.findbugs.DetectorFactoryCollection.instance(DetectorFactor
> yCollection.java:73)
> at
> edu.umd.cs.findbugs.config.UserPreferences.enableAllDetectors(UserPre
> ferences.java:314)
> at
> org.codehaus.mojo.findbugs.FindBugsMojo.initialiseFindBugs(FindBugsMo
> jo.java:312)
> at
> org.codehaus.mojo.findbugs.FindBugsMojo.executeReport(FindBugsMojo.ja
> va:254)
> at
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven
> Report.java:98)
> at
> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenR
> eport.java:73)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:412)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:534)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
> Goal(DefaultLifecycleExecutor.java:488)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:458)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:306)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:273)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:140)
> at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> Regards,
> Janhavi Phirke
> Accenture - Mumbai Delivery Center,
> Direct Dial: +91-22-6600 7046
> AIM: janhaviphirke
>
> ________________________________
>
> Disclaimer
> "This e-mail and any attachments to it (in part or in whole the
> "Communication") are confidential, may constitute inside information and
> are for the use only of the addressee. The Communication is the property
> of Accenture and its affiliates and may contain copyright material or
> intellectual property of Accenture and/or any of its related entities or
> of third parties. If you are not the intended recipient of the
> Communication or have received the Communication in error, please notify
> the sender or Accenture immediately, return the Communication (in
> entirety) and delete the Communication (in entirety and copies included)
> from your records and systems. Unauthorized use, disclosure or copying
> of this Communication or any part thereof is strictly prohibited and may
> be unlawful. Any views expressed in the Communication are those of the
> individual sender only, unless expressly stated to be those of Accenture
> and its affiliates. Accenture does not guarantee the integrity of the
> Communication, or that it is free from errors, viruses or interference."
>
>
> -----Original Message-----
> From: Nicolas Peeters [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 09, 2006 6:50 PM
> To: Maven Users List
> Subject: Re: problem with adding findbugs plugin
>
> 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.
> >
> >
>
>
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>