Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
FindBugs给出了一个GWT项目在Jenkins中的错误_Gwt_Jenkins_Findbugs - Fatal编程技术网

FindBugs给出了一个GWT项目在Jenkins中的错误

FindBugs给出了一个GWT项目在Jenkins中的错误,gwt,jenkins,findbugs,Gwt,Jenkins,Findbugs,我将Jenkins安装为CI工具。我还安装了findbugs插件来查找潜在的bug。(同时检查样式、pmd等)。 我的项目是一个使用maven结构的gwt项目。 我在jenkins配置页面中编写了执行findbugs的目标 clean package findbugs:findbugs 但是我得到了以下错误,并且没有从findbugs得到任何结果。其他插件工作正常 [INFO] Fork Value is true [java] The following classes neede

我将Jenkins安装为CI工具。我还安装了findbugs插件来查找潜在的bug。(同时检查样式、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的区别是什么?我应该改变什么?

我认为这是因为findbugs在JAR中看到了GWT源。我们已经使用findbugs maven插件配置中的
com.mycompany.
解决了这个问题。

这将在升级版gwt-2.5.1中修复,补丁在这里

解决方法-将gwt dev添加到类路径-


com.google.gwt
gwt开发
假如
2.5.0

这为我删除了GWTBridge警告。

不是在Jenkins中,而是在您的
pom.xml
中。我这样更改了pom。但是没有效果
code
org.codehaus.mojo findbugs maven plugin 2.3.2 1.6 de.company。尝试将gwt-dev.jar添加到类路径。这可能与最近使用GWT2.5进行的清理尝试有关
    <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt-dev</artifactId>
        <scope>provided</scope>
        <version>2.5.0</version>
    </dependency>