Findbugs problem by GWT Project.

312 views
Skip to first unread message

Kotuboy

unread,
Oct 31, 2011, 10:37:42 AM10/31/11
to google-we...@googlegroups.com
I have a maven GWT project and i am using findbugs to analyze the code.

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.3.2</version>               
                <configuration>
                    <targetJdk>1.6</targetJdk>
                    <onlyAnalyze>com.mycompany.</onlyAnalyze>                   
                </configuration>
</plugin>

But I am getting the following error and dont get any result from findbugs. The other plugins are working properly.

[INFO] Fork Value is true
[java] The following classes needed for analysis were missing:
[java] com.google.gwt.core.client.GWTBridge
[java] Missing classes: 2
[INFO] xmlOutput is false

What is the difference of findbugs?? What do you recommend?


Hilco Wijbenga

unread,
Oct 31, 2011, 5:21:03 PM10/31/11
to google-we...@googlegroups.com

GWTBridge is in gwt-dev. Did you add that as a dependency? Mind you, I
don't know why FindBugs would need it given your <onlyAnalyze>...

Thomas Broyer

unread,
Nov 1, 2011, 6:17:27 AM11/1/11
to google-we...@googlegroups.com
Do you really have no output from findbugs? What if you add <xmlOutput>true</xmlOutput> (as suggested by the last line your copy/pasted)?

We do have:
          <findbugsXmlOutput>true</findbugsXmlOutput>
          <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
          <xmlOutput>true</xmlOutput>
in our config. I can't remember what each one does and whether they're required or even useful, but it works (and by that, I mean that our Jenkins job correctly shows us findbugs results)

BTW, this is not an error.

Carlos Alexandro Becker

unread,
May 11, 2012, 1:23:24 PM5/11/12
to google-we...@googlegroups.com
I am with this problem here too...

gleclaire

unread,
May 15, 2012, 4:58:06 PM5/15/12
to google-we...@googlegroups.com
You either need a full path to the class or end with ".*" if you wish to do all the class at the package level.  If you wish to include subpackages use ".-" suffix instead.

See http://findbugs.sourceforge.net/manual/running.html#commandLineOptions
Reply all
Reply to author
Forward
0 new messages