[ 
http://jira.codehaus.org/browse/MFINDBUGS-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190789#action_190789
 ] 

Bob Fields commented on MFINDBUGS-58:
-------------------------------------

Bug still exists in v2.0.1... I want to configure findbugs only once in a top 
level project, instead of every sub-module except for the one without any code. 
It's not a crash, it just kills the build.

[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [findbugs:findbugs]
[INFO]   Using source root:
[INFO]     C:\Workspaces\A34\andromda34\andromdapp-wdw\projects\richclient\ant\t
arget\classes
[INFO]   Using test source root:
[INFO]     C:\Workspaces\A34\andromda34\andromdapp-wdw\projects\richclient\ant\t
arget\test-classes
[INFO]   Using maximum effort.
[INFO]   Adding Source Directory: 
C:\Workspaces\A34\andromda34\andromdapp-wdw\projects\richclient\ant\src\main\java
[INFO]   No threshold provided, using default threshold.
[INFO]   Using FindBugs Version: 1.3.8
[INFO]   No threshold provided, using default threshold.
[INFO]   No threshold provided, using default threshold.
[INFO]   Using the xdoc format
[INFO]   Using maximum effort.
[INFO]   No threshold provided, using default threshold.
[INFO]   No threshold provided, using default threshold.
[INFO]   Debugging is Off
[INFO]   No bug include filter.
[INFO]   No bug exclude filter.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed executing FindBugs

Embedded error: No classes found to analyze in *C:\Workspaces\A34\andromda34\and
romdapp-wdw\projects\richclient\ant\target\classes *C:\Programs\maven\repository
\org\springframework\spring-mock\1.2.7\spring-mock-1.2.7.jar *C:\Programs\maven\
...
        at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:217)
...
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
        at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHel
per.java:778)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:758)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:170)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(Scrip
tBytecodeAdapter.java:198)
        at org.codehaus.mojo.findbugs.FindBugsMojo.executeReport(FindBugsMojo.gr
oovy:792)

> Regession in 2.0-SNAPSHOT, When there are no class, findbugs crash
> ------------------------------------------------------------------
>
>                 Key: MFINDBUGS-58
>                 URL: http://jira.codehaus.org/browse/MFINDBUGS-58
>             Project: Maven 2.x FindBugs Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows XP , Maven 2.08,  findbugs findbugs-maven-plugin 
> 2.0-SNAPSHOT
>            Reporter: Arnaud
>            Assignee: Garvin LeClaire
>            Priority: Minor
>             Fix For: 2.0
>
>
> <!-- findbugs -->
> <plugin>
>     <groupId>org.codehaus.mojo</groupId>
>     <artifactId>findbugs-maven-plugin</artifactId>
>     <version>2.0-SNAPSHOT</version>
>     <configuration>
>         <xmlOutput>true</xmlOutput>
>         <threshold>Normal</threshold>
>         <effort>Default</effort>                                              
>         
>     </configuration>
> </plugin>
> When i run a "mvn site" on a project with 0 class ( juste some resources), 
> the repport crash like this : 
> [INFO] Generating "FindBugs Report" report.
> [INFO]   Using normal effort.
> [INFO]   Using normal threshold.
> [INFO]   Using FindBugs Version: 1.3.2
> [INFO]   Using normal threshold.
> [INFO]   Using normal threshold.
> [INFO]   Using the xdoc format
> [INFO]   Using normal effort.
> [INFO]   Using normal threshold.
> [INFO]   Using normal threshold.
> [INFO]   Debugging is Off
> [INFO]   No bug include filter.
> [INFO]   No bug exclude filter.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed executing FindBugs
> Embedded error: No classes found to analyze in
> *D:\myproject\target\classes
> *D:\Documents and 
> Settings\xxx\.m2\repository\org\codehaus\xfire\xfire-generator\1.2.6\xfire-generator-1.2.6.jar
> *D:\Documents and 
> Settings\xxx\.m2\repository\org\codehaus\xfire\xfire-jaxb2\1.2.6\xfire-jaxb2-1.2.6.jar
> *D:\Documents and 
> Settings\xxx\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0.1\jaxb-xjc-2.0.1.jar
> *D:\Documents and 
> Settings\xxx\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.1\jaxb-impl-2.0.1.jar
> *D:\Documents and 
> Settings\xxx\.m2\repository\javax\xml\jaxb-api\2.0\jaxb-api-2.0.jar
> *D:\Documents and 
> Settings\xxx\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar
> ...
> *D:\Documents and 
> Settings\A154577\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar
> *D:\Documents and 
> Settings\A154577\.m2\repository\javax\xml\bind\jsr173_api\1.0\jsr173_api-1.0.jar
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 58 seconds
> [INFO] Finished at: Fri Apr 25 14:20:47 CEST 2008
> [INFO] Final Memory: 48M/187M
> [INFO] 
> ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to