Findbugs Maven 2 plugin

View: New views
8 Messages — Rating Filter:   Alert me  

Findbugs Maven 2 plugin

by Garvin LeClaire-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have updated the Maven 2 plugin to use version 1.3.9 of FindBugs.   I
have also done a substantial amount of refactoring to reduce the amount
of Maven dependencies and code size.  I would appreciate any feedback
before we try to release it.

It is in the Codehaus mojo snapshot repository at
http://repository.codehaus.org/org/codehaus/mojo/ .  The site is
http://mojo.codehaus.org/findbugs-maven-plugin/2.2-SNAPSHOT/

The version is 2.2-SNAPSHOT and you just need to add the following
dependency to your reporting section:

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

--

Regards,



Garvin LeClaire
garvin.leclaire@...


_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: Findbugs Maven 2 plugin

by Christoph Kutzinski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Seems like it isn't yet deployed to the repository.
Or did you mean:
http://snapshots.repository.codehaus.org/ ?

BTW: thanks for your continued work on the findbugs maven plugin.
I greatly appriciate the timely updates!

Christoph

Garvin LeClaire schrieb:

> I have updated the Maven 2 plugin to use version 1.3.9 of FindBugs.   I
> have also done a substantial amount of refactoring to reduce the amount
> of Maven dependencies and code size.  I would appreciate any feedback
> before we try to release it.
>
> It is in the Codehaus mojo snapshot repository at
> http://repository.codehaus.org/org/codehaus/mojo/ .  The site is
> http://mojo.codehaus.org/findbugs-maven-plugin/2.2-SNAPSHOT/
>
> The version is 2.2-SNAPSHOT and you just need to add the following
> dependency to your reporting section:
>
>  <reporting>
>     <plugins>
>       <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>findbugs-maven-plugin</artifactId>
>         <version>2.2-SNAPSHOT</version>
>       </plugin>
>       ...
>     </plugins>
>   </reporting>
>

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: Findbugs Maven 2 plugin

by Christoph Kutzinski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When using the plugin from http://snapshots.repository.codehaus.org/
I get the following message while running findbugs:findbugs on my project:

[INFO] Building wremja-launcher
[INFO]    task-segment: [findbugs:findbugs]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing findbugs:findbugs
[INFO] [buildnumber:create {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [findbugs:findbugs]
      [java] The following classes needed for analysis were missing:
      [java]   org.jdesktop.swingx.plaf.LookAndFeelAddons
      [java]   org.joda.time.format.DateTimeFormat
      [java]   com.kemai.wremja.gui.model.io.DataBackup
      [java]   com.kemai.util.TextResourceBundle
      [java]   org.joda.time.format.DateTimeFormatter
      [java]   com.kemai.wremja.gui.MainFrame
      [java]   org.joda.time.DateTime
      [java]   com.kemai.wremja.gui.TrayIcon
      [java]   com.kemai.wremja.model.io.ProTrackReader
      [java]   com.kemai.wremja.logging.Logger
      [java]   com.kemai.util.CollectionUtils
      [java]   com.kemai.wremja.model.ActivityRepository
      [java]   org.joda.time.ReadableInstant
      [java]   com.kemai.wremja.gui.settings.ApplicationSettings
      [java]   edu.umd.cs.findbugs.annotations.SuppressWarnings
      [java]   com.kemai.wremja.gui.model.ProjectActivityStateException
      [java]   com.jgoodies.looks.plastic.Plastic3DLookAndFeel
      [java]   com.kemai.wremja.gui.model.io.SaveDaemon
      [java]   com.kemai.wremja.gui.model.PresentationModel
      [java]   com.kemai.wremja.gui.settings.UserSettings
      [java]   com.kemai.wremja.gui.settings.IUserSettings
      [java]   com.kemai.wremja.logging.BetterFormatter
      [java]   javax.annotation.Nonnull
      [java] Missing classes: 24


Seems like findbugs plugin cannot find the project's dependencies. This
doesn't happen when I go back to 2.1.

BTW: this is a child module of a multi-module project. If you want, I
can send you the complete build log.


Christoph


Christoph Kutzinski schrieb:

> Seems like it isn't yet deployed to the repository.
> Or did you mean:
> http://snapshots.repository.codehaus.org/ ?
>
> BTW: thanks for your continued work on the findbugs maven plugin.
> I greatly appriciate the timely updates!
>
> Christoph
>
> Garvin LeClaire schrieb:
>> I have updated the Maven 2 plugin to use version 1.3.9 of FindBugs.   I
>> have also done a substantial amount of refactoring to reduce the amount
>> of Maven dependencies and code size.  I would appreciate any feedback
>> before we try to release it.
>>
>> It is in the Codehaus mojo snapshot repository at
>> http://repository.codehaus.org/org/codehaus/mojo/ .  The site is
>> http://mojo.codehaus.org/findbugs-maven-plugin/2.2-SNAPSHOT/
>>
>> The version is 2.2-SNAPSHOT and you just need to add the following
>> dependency to your reporting section:
>>
>>  <reporting>
>>     <plugins>
>>       <plugin>
>>         <groupId>org.codehaus.mojo</groupId>
>>         <artifactId>findbugs-maven-plugin</artifactId>
>>         <version>2.2-SNAPSHOT</version>
>>       </plugin>
>>       ...
>>     </plugins>
>>   </reporting>
>>
>
> _______________________________________________
> Findbugs-discuss mailing list
> Findbugs-discuss@...
> https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: Findbugs Maven 2 plugin

by Garvin LeClaire-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the problem and will have a fix tomorrow evening ( Wed AM your time). 


Regards,



Garvin LeClaire
garvin.leclaire@...



Christoph Kutzinski wrote:
When using the plugin from http://snapshots.repository.codehaus.org/
I get the following message while running findbugs:findbugs on my project:

[INFO] Building wremja-launcher
[INFO]    task-segment: [findbugs:findbugs]
[INFO] 
------------------------------------------------------------------------
[INFO] Preparing findbugs:findbugs
[INFO] [buildnumber:create {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [findbugs:findbugs]
      [java] The following classes needed for analysis were missing:
      [java]   org.jdesktop.swingx.plaf.LookAndFeelAddons
      [java]   org.joda.time.format.DateTimeFormat
      [java]   com.kemai.wremja.gui.model.io.DataBackup
      [java]   com.kemai.util.TextResourceBundle
      [java]   org.joda.time.format.DateTimeFormatter
      [java]   com.kemai.wremja.gui.MainFrame
      [java]   org.joda.time.DateTime
      [java]   com.kemai.wremja.gui.TrayIcon
      [java]   com.kemai.wremja.model.io.ProTrackReader
      [java]   com.kemai.wremja.logging.Logger
      [java]   com.kemai.util.CollectionUtils
      [java]   com.kemai.wremja.model.ActivityRepository
      [java]   org.joda.time.ReadableInstant
      [java]   com.kemai.wremja.gui.settings.ApplicationSettings
      [java]   edu.umd.cs.findbugs.annotations.SuppressWarnings
      [java]   com.kemai.wremja.gui.model.ProjectActivityStateException
      [java]   com.jgoodies.looks.plastic.Plastic3DLookAndFeel
      [java]   com.kemai.wremja.gui.model.io.SaveDaemon
      [java]   com.kemai.wremja.gui.model.PresentationModel
      [java]   com.kemai.wremja.gui.settings.UserSettings
      [java]   com.kemai.wremja.gui.settings.IUserSettings
      [java]   com.kemai.wremja.logging.BetterFormatter
      [java]   javax.annotation.Nonnull
      [java] Missing classes: 24


Seems like findbugs plugin cannot find the project's dependencies. This 
doesn't happen when I go back to 2.1.

BTW: this is a child module of a multi-module project. If you want, I 
can send you the complete build log.


Christoph


Christoph Kutzinski schrieb:
  
Seems like it isn't yet deployed to the repository.
Or did you mean:
http://snapshots.repository.codehaus.org/ ?

BTW: thanks for your continued work on the findbugs maven plugin.
I greatly appriciate the timely updates!

Christoph

Garvin LeClaire schrieb:
    
I have updated the Maven 2 plugin to use version 1.3.9 of FindBugs.   I 
have also done a substantial amount of refactoring to reduce the amount 
of Maven dependencies and code size.  I would appreciate any feedback 
before we try to release it.

It is in the Codehaus mojo snapshot repository at 
http://repository.codehaus.org/org/codehaus/mojo/ .  The site is 
http://mojo.codehaus.org/findbugs-maven-plugin/2.2-SNAPSHOT/

The version is 2.2-SNAPSHOT and you just need to add the following 
dependency to your reporting section:

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

      
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
    

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

  

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: Findbugs Maven 2 plugin

by Garvin LeClaire-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Should be fixed now.  I also cleaned up the GUI launcher with the changes.
Regards,



Garvin LeClaire
garvin.leclaire@...



Christoph Kutzinski wrote:
When using the plugin from http://snapshots.repository.codehaus.org/
I get the following message while running findbugs:findbugs on my project:

[INFO] Building wremja-launcher
[INFO]    task-segment: [findbugs:findbugs]
[INFO] 
------------------------------------------------------------------------
[INFO] Preparing findbugs:findbugs
[INFO] [buildnumber:create {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [findbugs:findbugs]
      [java] The following classes needed for analysis were missing:
      [java]   org.jdesktop.swingx.plaf.LookAndFeelAddons
      [java]   org.joda.time.format.DateTimeFormat
      [java]   com.kemai.wremja.gui.model.io.DataBackup
      [java]   com.kemai.util.TextResourceBundle
      [java]   org.joda.time.format.DateTimeFormatter
      [java]   com.kemai.wremja.gui.MainFrame
      [java]   org.joda.time.DateTime
      [java]   com.kemai.wremja.gui.TrayIcon
      [java]   com.kemai.wremja.model.io.ProTrackReader
      [java]   com.kemai.wremja.logging.Logger
      [java]   com.kemai.util.CollectionUtils
      [java]   com.kemai.wremja.model.ActivityRepository
      [java]   org.joda.time.ReadableInstant
      [java]   com.kemai.wremja.gui.settings.ApplicationSettings
      [java]   edu.umd.cs.findbugs.annotations.SuppressWarnings
      [java]   com.kemai.wremja.gui.model.ProjectActivityStateException
      [java]   com.jgoodies.looks.plastic.Plastic3DLookAndFeel
      [java]   com.kemai.wremja.gui.model.io.SaveDaemon
      [java]   com.kemai.wremja.gui.model.PresentationModel
      [java]   com.kemai.wremja.gui.settings.UserSettings
      [java]   com.kemai.wremja.gui.settings.IUserSettings
      [java]   com.kemai.wremja.logging.BetterFormatter
      [java]   javax.annotation.Nonnull
      [java] Missing classes: 24


Seems like findbugs plugin cannot find the project's dependencies. This 
doesn't happen when I go back to 2.1.

BTW: this is a child module of a multi-module project. If you want, I 
can send you the complete build log.


Christoph


Christoph Kutzinski schrieb:
  
Seems like it isn't yet deployed to the repository.
Or did you mean:
http://snapshots.repository.codehaus.org/ ?

BTW: thanks for your continued work on the findbugs maven plugin.
I greatly appriciate the timely updates!

Christoph

Garvin LeClaire schrieb:
    
I have updated the Maven 2 plugin to use version 1.3.9 of FindBugs.   I 
have also done a substantial amount of refactoring to reduce the amount 
of Maven dependencies and code size.  I would appreciate any feedback 
before we try to release it.

It is in the Codehaus mojo snapshot repository at 
http://repository.codehaus.org/org/codehaus/mojo/ .  The site is 
http://mojo.codehaus.org/findbugs-maven-plugin/2.2-SNAPSHOT/

The version is 2.2-SNAPSHOT and you just need to add the following 
dependency to your reporting section:

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

      
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
    

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

  

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Findbugs Maven 2 plugin problem

by Bill Shannon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using the FindBugs Maven 2 plugin v2.1 to run FindBugs against GlassFish
(https://glassfish.dev.java.net/).  GlassFish has many modules and submodules.
I've configured FindBugs in the top level pom.xml and then specified exclude
files in some of the lower level modules that need them.

I have one case of a sub-sub-module that seems to be ignoring the exclude
file, or rather, ignoring the contents of the exclude file.

If I run "mvn findbugs:findbugs" in the security/core module, I get the
expected results.

If I run "mvn findbugs:findbugs" in the security module, which also causes
it to run on the security/core module, I get the expected results.

But if I run "mvn findbugs:findbugs" on the top level module, the results
are as if the exclude file is being ignored.  It *says* it's using an
exclude file (copied to some temporary location for some reason), but
it's still reporting bugs that should be excluded.

Can anyone suggest anything I might be doing wrong?

I can provide lots more details to anyone who can help me debug this.

You can find the code via svn here:
https://svn.dev.java.net/svn/glassfish-svn/trunk/v3
or browse it here:
http://fisheye4.atlassian.com/browse/glassfish-svn/trunk/v3


I tried to use the 2.2-SNAPSHOT version of the FindBugs plugin, but in
general we don't want to use SNAPSHOT versions of things in the GlassFish
build and apparently I don't understand enough about maven to figure out
how to make it use it anyway.  :-(

Thanks for any help!

FYI, you can find the report here:

http://hudson.glassfish.org/job/gf-trunk-findbugs/
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: Findbugs Maven 2 plugin problem

by Garvin LeClaire-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bill,

The current version of the plugin is 2.0.1,  The 2.1 version is a  
byproducts of a bug in the release plugin.  Unfortunately there is not  
any way to remove from the repositories.
Hopefully I will get a 2.2 release out in the next couple of weeks  
once I address a bug in FindBugs I found.

Try the 2.0.1 version and see what your results you get.

I will set up a test case similar to yours and see if I can reproduce  
the problem.


Regards,

Garvin LeClaire
garvin.leclaire@...



On Sep 24, 2009, at 6:37 PM, Bill Shannon wrote:

> I'm using the FindBugs Maven 2 plugin v2.1 to run FindBugs against  
> GlassFish
> (https://glassfish.dev.java.net/).  GlassFish has many modules and  
> submodules.
> I've configured FindBugs in the top level pom.xml and then specified  
> exclude
> files in some of the lower level modules that need them.
>
> I have one case of a sub-sub-module that seems to be ignoring the  
> exclude
> file, or rather, ignoring the contents of the exclude file.
>
> If I run "mvn findbugs:findbugs" in the security/core module, I get  
> the
> expected results.
>
> If I run "mvn findbugs:findbugs" in the security module, which also  
> causes
> it to run on the security/core module, I get the expected results.
>
> But if I run "mvn findbugs:findbugs" on the top level module, the  
> results
> are as if the exclude file is being ignored.  It *says* it's using an
> exclude file (copied to some temporary location for some reason), but
> it's still reporting bugs that should be excluded.
>
> Can anyone suggest anything I might be doing wrong?
>
> I can provide lots more details to anyone who can help me debug this.
>
> You can find the code via svn here:
> https://svn.dev.java.net/svn/glassfish-svn/trunk/v3
> or browse it here:
> http://fisheye4.atlassian.com/browse/glassfish-svn/trunk/v3
>
>
> I tried to use the 2.2-SNAPSHOT version of the FindBugs plugin, but in
> general we don't want to use SNAPSHOT versions of things in the  
> GlassFish
> build and apparently I don't understand enough about maven to figure  
> out
> how to make it use it anyway.  :-(
>
> Thanks for any help!
>
> FYI, you can find the report here:
>
> http://hudson.glassfish.org/job/gf-trunk-findbugs/
> _______________________________________________
> Findbugs-discuss mailing list
> Findbugs-discuss@...
> https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: Findbugs Maven 2 plugin problem

by Bill Shannon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I changed the version in the pom.xml to 2.0.1.  It made no difference.

You should be able to reproduce this easily using GlassFish, but let
me know if you need any help with that.

Garvin LeClaire wrote on 9/27/09 7:12 PM:

> Bill,
>
> The current version of the plugin is 2.0.1,  The 2.1 version is a
> byproducts of a bug in the release plugin.  Unfortunately there is not
> any way to remove from the repositories.
> Hopefully I will get a 2.2 release out in the next couple of weeks once
> I address a bug in FindBugs I found.
>
> Try the 2.0.1 version and see what your results you get.
>
> I will set up a test case similar to yours and see if I can reproduce
> the problem.
>
>
> Regards,
>
> Garvin LeClaire
> garvin.leclaire@...
>
>
>
> On Sep 24, 2009, at 6:37 PM, Bill Shannon wrote:
>
>> I'm using the FindBugs Maven 2 plugin v2.1 to run FindBugs against
>> GlassFish
>> (https://glassfish.dev.java.net/).  GlassFish has many modules and
>> submodules.
>> I've configured FindBugs in the top level pom.xml and then specified
>> exclude
>> files in some of the lower level modules that need them.
>>
>> I have one case of a sub-sub-module that seems to be ignoring the exclude
>> file, or rather, ignoring the contents of the exclude file.
>>
>> If I run "mvn findbugs:findbugs" in the security/core module, I get the
>> expected results.
>>
>> If I run "mvn findbugs:findbugs" in the security module, which also
>> causes
>> it to run on the security/core module, I get the expected results.
>>
>> But if I run "mvn findbugs:findbugs" on the top level module, the results
>> are as if the exclude file is being ignored.  It *says* it's using an
>> exclude file (copied to some temporary location for some reason), but
>> it's still reporting bugs that should be excluded.
>>
>> Can anyone suggest anything I might be doing wrong?
>>
>> I can provide lots more details to anyone who can help me debug this.
>>
>> You can find the code via svn here:
>> https://svn.dev.java.net/svn/glassfish-svn/trunk/v3
>> or browse it here:
>> http://fisheye4.atlassian.com/browse/glassfish-svn/trunk/v3
>>
>>
>> I tried to use the 2.2-SNAPSHOT version of the FindBugs plugin, but in
>> general we don't want to use SNAPSHOT versions of things in the GlassFish
>> build and apparently I don't understand enough about maven to figure out
>> how to make it use it anyway.  :-(
>>
>> Thanks for any help!
>>
>> FYI, you can find the report here:
>>
>> http://hudson.glassfish.org/job/gf-trunk-findbugs/
>> _______________________________________________
>> Findbugs-discuss mailing list
>> Findbugs-discuss@...
>> https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss