You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Leo L <le...@gmail.com> on 2006/05/10 19:55:31 UTC

findbugs for maven2 - NullPointerException

I still have a problem with findbugs plugin
I visited the mojo´s site e followed the instructions like
http://mojo.codehaus.org/findbugs-maven-plugin/howto.html  and still get
NullPointerException.
It seems that is not a real maven´s 2 plugin...

Anyone tried findbugs for maven2 ????
Any clue?

Leo

Re: findbugs for maven2 - NullPointerException

Posted by Vinod Panicker <vi...@gmail.com>.
Hi,

On 5/11/06, Leo L <le...@gmail.com> wrote:
> Hi wayne!
>
> First I had to get the repo's configured correctly, did you?
> /conf/settings.xml:
> ====================
>        <pluginRepository>
>            <id>codehaus-snapshot-plugins</id>
>            <name>codehaus-shapshot-plugins</name>
>            <url> http://snapshots.maven.codehaus.org/maven2/</url>
>            <snapshots>
>                <enabled>true</enabled>
>            </snapshots>
>            <releases>
>                <enabled>false</enabled>
>            </releases>
>        </pluginRepository>
> ================
>
>
> ...and I got the plugin from this repositoty. After that when a run de
> command  mvn -e site i have the exception (above is the full description):

<snip/>

Please download the sources for the findbugs plugin and do an 'mvn
install' on it so that it gets installed in your local repo.  This
should take care of the null pointer exception.

Let us know if the problem was resolved.

Regards,
Vinod.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: findbugs for maven2 - NullPointerException

Posted by Leo L <le...@gmail.com>.
Hi wayne!

First I had to get the repo's configured correctly, did you?
/conf/settings.xml:
====================
       <pluginRepository>
           <id>codehaus-snapshot-plugins</id>
           <name>codehaus-shapshot-plugins</name>
           <url> http://snapshots.maven.codehaus.org/maven2/</url>
           <snapshots>
               <enabled>true</enabled>
           </snapshots>
           <releases>
               <enabled>false</enabled>
           </releases>
       </pluginRepository>
================


...and I got the plugin from this repositoty. After that when a run de
command  mvn -e site i have the exception (above is the full description):

[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at org.apache.maven.plugin.DefaultPluginManager.addPlugin
(DefaultPluginM
anager.java:292)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin (De
faultPluginManager.java:198)
        at org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin
(Defau
ltPluginManager.java:487)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugi
n(DefaultLifecycleExecutor.java:1292)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports
(Defaul
tLifecycleExecutor.java:657)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(Defaul
tLifecycleExecutor.java:637)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:512)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:454)
        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:585)
        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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Tue May 09 15:19:46 GMT-03:00 2006
[INFO] Final Memory: 9M/18M
[INFO]
------------------------------------------------------------------------

Any helps would be great!

Thanks Leo




2006/5/11, Wayne Fay <wa...@gmail.com>:
>
> I'm using findbugs plugin rather successfully myself:
>
> <reporting>
> <plugins>
>      <plugin>
>        <groupId>org.codehaus.mojo</groupId>
>        <artifactId>findbugs-maven-plugin</artifactId>
>        <version>1.0-SNAPSHOT</version>
>      </plugin>
>
> What specifically is your problem? Perhaps paste the stack trace from the
> error?
>
> Wayne
>
> On 5/10/06, Leo L <le...@gmail.com> wrote:
> > I still have a problem with findbugs plugin
> > I visited the mojo´s site e followed the instructions like
> > http://mojo.codehaus.org/findbugs-maven-plugin/howto.html   and still
> get
> > NullPointerException.
> > It seems that is not a real maven´s 2 plugin...
> >
> > Anyone tried findbugs for maven2 ????
> > Any clue?
> >
> > Leo
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: findbugs for maven2 - NullPointerException

Posted by Wayne Fay <wa...@gmail.com>.
I'm using findbugs plugin rather successfully myself:

<reporting>
<plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
      </plugin>

What specifically is your problem? Perhaps paste the stack trace from the error?

Wayne

On 5/10/06, Leo L <le...@gmail.com> wrote:
> I still have a problem with findbugs plugin
> I visited the mojo´s site e followed the instructions like
> http://mojo.codehaus.org/findbugs-maven-plugin/howto.html  and still get
> NullPointerException.
> It seems that is not a real maven´s 2 plugin...
>
> Anyone tried findbugs for maven2 ????
> Any clue?
>
> Leo
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org