2011-06-30 54 views
1

做了一些研究,我發現這個Old Post與那些聲稱被固定在幾乎相同的問題的鏈接哈德森問題跟蹤網站的一些信息我正在使用的Hudson 2.0.1和Maven 2.2.1的當前版本。哈德森2.0.1和Maven 2.2.1,並不能找到符號錯誤

看來,當我嘗試在哈德森上運行測試時,我得到一個「無法找到符號錯誤」,它在eclipse中運行良好,這導致我認爲它可能與Hudson和Maven有關,但我不是當然。

這裏是我的,我相信(閱讀以前的帖子後)的部分堆棧跟蹤相關或主題相關

[WARNING] 
************ WARNING ************ 

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration. 

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor 
Missing component requirement: org.apache.maven.project.MavenProjectBuilder 

NOTE: This seems to be a third-party Maven derivative you are using. If so, please 
notify the developers for this derivative project of the problem. The Apache Maven team is not 
responsible for maintaining the integrity of third-party component overrides. 


[WARNING] 
************ WARNING ************ 

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration. 

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor 
Missing component requirement: org.apache.maven.project.interpolation.ModelInterpolator 

NOTE: This seems to be a third-party Maven derivative you are using. If so, please 
notify the developers for this derivative project of the problem. The Apache Maven team is not 
responsible for maintaining the integrity of third-party component overrides. 


[WARNING] 
************ WARNING ************ 

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration. 

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor 
Missing component requirement: org.apache.maven.ConfigurationInterpolator 

NOTE: This seems to be a third-party Maven derivative you are using. If so, please 
notify the developers for this derivative project of the problem. The Apache Maven team is not 
responsible for maintaining the integrity of third-party component overrides. 


[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Lonely Planet Code Test 
[INFO] task-segment: [clean, install] 
[INFO] ------------------------------------------------------------------------ 
[INFO] [clean:clean {execution: default-clean}] 
[INFO] Deleting file set: /var/lib/hudson/jobs/Lonely Planet Coding Tests/workspace/trunk/com.lonelyplanet.codetest.wkallan/target (included: [**], excluded: []) 
[INFO] [resources:resources {execution: default-resources}] 
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! 
[INFO] Copying 3 resources 
[INFO] [compiler:compile {execution: default-compile}] 
[INFO] Compiling 1 source file to /var/lib/hudson/jobs/Lonely Planet Coding Tests/workspace/trunk/com.lonelyplanet.codetest.wkallan/target/classes 
[HUDSON] Archiving /var/lib/hudson/jobs/Lonely Planet Coding Tests/workspace/trunk/com.lonelyplanet.codetest.wkallan/pom.xml to /var/lib/hudson/jobs/Lonely Planet Coding Tests/modules/com.lonelyplanet.codetest.wkallan$com.lonelyplanet.codetest.wkallan/builds/2011-06-30_13-40-15/archive/com.lonelyplanet.codetest.wkallan/com.lonelyplanet.codetest.wkallan/0.0.1-SNAPSHOT/pom.xml 
[INFO] ------------------------------------------------------------------------ 
[ERROR] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Compilation failure 
/var/lib/hudson/jobs/Lonely Planet Coding Tests/workspace/trunk/com.lonelyplanet.codetest.wkallan/src/main/java/com/lonelyplanet/codetest/wkallan/ContentGenerator.java:[30,15] cannot find symbol 
symbol : method format(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) 
location: class java.lang.String 
+0

一些很好的修復Hudson問題的軟件存在於這裏:http://jenkins-ci.org/ – Daniel

回答

3

說真的,我支持丹尼爾的建議。移到詹金斯。幾乎所有的開發商哈德森已經轉移到詹金斯和不配套或開發哈德森在它的老名字,因爲Oracle的分裂。 我已經將我們的哈德森遷移到詹金斯。遷移通常是無縫的。 使用Jenkins的好處是他們每週(基於迭代)發佈,他們傾向於修復很多比Oracle更多的東西。

我並不想在這裏展開了口水戰,這只是我個人的意見。只是建議。 :-)

+0

感謝Daniel和Carlspring我想我會試試看,我不知道爲什麼我沒有或沒有甚至認爲...希望它能解決我的問題。 – ImaginateWayne

0

難道你哈德森服務器是一個古老的JDK 1.4上運行?在Java 5中加入在java.lang.Stringformat方法,您也應該檢查是否Maven的編譯器插件被配置在POM源1.5。 Maven 2中的默認值是1.4甚至1.3。

+0

我將在這個快速去看看,如果它的問題,否則我將採取上述建議。再次感謝 – ImaginateWayne