我安装了 Jenkins 作为 CI 工具。我还安装了 findbugs 插件来查找潜在的错误。 (还有checkstyle、pmd等)。 我的项目是一个使用 maven 结构的 gwt 项目。 我在 jenkins 配置页面中编写了执行 findbugs 的目标。
clean package findbugs:findbugs
但是我收到以下错误并且没有从 findbugs 得到任何结果。其他插件工作正常。
[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
FindBugs 有什么不同?我应该改变什么?
最佳答案
这将在即将发布的 gwt-2.5.1 版本中修复,补丁在这里 http://gwt-code-reviews.appspot.com/1722803 .
解决方法 - 将 gwt-dev 添加到类路径 - https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit-contributors/JQCU4mQWNX0
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<scope>provided</scope>
<version>2.5.0</version>
</dependency>
这为我消除了 GWTBridge 警告。
关于gwt - FindBugs 通过 GWT 项目在 Jenkins 中给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7832628/