2011-10-20 25 views
3

我將Jenkins安裝爲CI工具。我還安裝了findbugs插件來查找潛在的錯誤。 (還有checkstyle,pmd等)。 我的項目是一個使用maven結構的gwt項目。 我在jenkins配置頁面寫了目標來執行findbugs。FindBugs通過GWT項目在Jenkins中給出錯誤

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有什麼區別?我應該改變什麼?

+0

嘗試將gwt-dev.jar添加到類路徑中。這可能與最近使用GWT 2.5進行的清理嘗試有關https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit-contributors/JQCU4mQWNX0 – SSR

回答

-1

我認爲這是因爲findbugs在JAR中看到GWT源。我們已經在findbugs-maven-plugin配置中使用<onlyAnalyze>com.mycompany.</onlyAnalyze>解決了這個問題。

+0

我已經在Pom.xml中添加了此選項。得到了相同的錯誤.. – Kayser

+0

它不在詹金斯,它在你的'pom.xml'中。 –

+0

我改變了那樣的pom。但沒有效果\t \t \t'code' \t \t \t \t org.codehaus.mojo \t \t \t \t FindBugs的-行家-插件 \t \t \t \t 2.3.2 \t \t \t \t <配置> \t \t \t \t \t 1.6 \t \t \t \t \t de.company。 \t \t \t \t \t \t \t Kayser

相關問題