2010-09-22 97 views
4

搜索並嘗試了很多事情後,我需要一個Maven maven :)
所以,我的問題是,在我的開發框(這是Windows 2003)我可以構建我的maven項目,但在Bamboo服務器(x86_64 x86_64 x86_64 GNU/Linux)上失敗,因爲其中一個模塊沒有庫並且編譯沒有找到類。
該類在傳遞性依賴中找到,依賴關係在我看來沒有解決。
我已經在兩個框上運行命令「mvn -X clean install」並比較輸出。 唯一的變化,我認爲這是相關的是Maven:父項目未解決,傳遞依賴不用於編譯

在DEV-箱

[DEBUG] Retrieving parent-POM: pl.com.abg.iacsro:sapscndp-claimprocessing:pom:1.0-SNAPSHOT for project: pl.com.abg.iacsro:sapscndp-claimprocessing-api:jar:DEV2010 from the repository. 

竹盒

[DEBUG] Retrieving parent-POM: pl.com.abg.iacsro:sapscndp-claimprocessing:pom:1.0-SNAPSHOT for project: null:sapscndp-claimprocessing-api:jar:DEV2010 from the repository. 

在我看來,那行家不能解決模塊的父母,因爲後來在構建過程中我看到了(在Bamboo box上)

[WARNING] POM for 'pl.com.abg.iacsro:sapscndp-claimprocessing-api:pom:DEV2010:provided' is invalid. 
Its dependencies (if any) will NOT be available to the current build. 
[DEBUG] Reason: Failed to validate POM for project pl.com.abg.iacsro:sapscndp-claimprocessing-api at Artifact [pl.com.abg.iacsro:sapscndp-claimprocessing-api:pom:DEV2010:provided] 
Validation Errors: 
[DEBUG] 'dependencies.dependency.version' is missing for pl.com.abg.iacsro:systemcore-jobs-api:jar 
[DEBUG] 'dependencies.dependency.version' is missing for pl.com.abg.iacsro:workflow-crossconflictresolution-api:jar 
[DEBUG] 'dependencies.dependency.version' is missing for pl.com.abg.iacsro:iacs-commons-objectfactory:jar 
[DEBUG] 'dependencies.dependency.version' is missing for ro.siveco.iacsro:farmerregistry-api:jar 

I也發現了這個

[WARNING] POM for 'pl.com.abg.iacsro:sapscndp-claimprocessing-api:pom:DEV2010:provided' is invalid.

但我已經檢查並驗證了自己對xsd的依賴關係,因此pom是有效的。


你知道如何解決這個問題嗎?

非常感謝!

P.S. :在可能的情況下,我忽略了一些東西,這裏是從竹盒http://dl.dropbox.com/u/402296/install.txt

回答

1

全面上市當我看到這樣的條目:

 
[DEBUG] Connecting to repository: 'Artifactory-internal-repository' with url: 'http://192.168.0.59:8081/artifactory/repo'. 
Downloading: http://192.168.0.59:8081/artifactory/repo/pl/com/abg/iacsro/onthespotcheck/1.0-SNAPSHOT/onthespotcheck-1.0-SNAPSHOT.pom 
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http 
[DEBUG] Artifact resolved 
[WARNING] POM for 'pl.com.abg.iacsro:onthespotcheck-checks-api:pom:DEV2009_2:provided' is invalid. 

我很想問有沒有什麼特別的說約onthespotcheck-1.0-SNAPSHOT.pom

作爲一個側面說明,你有一堆:

for project: null:artifactId:version

,我覺得很奇怪。爲什麼是groupId null?有什麼值得一提的關於你的POM?

+0

謝謝你的擡頭,有時我看不到整個圖片。 這是我嘗試整理的遺留項目,所以它充滿了小錯誤。 我已經刪除了.m2文件夾,並且已經在我的開發箱中複製了該行爲。 我將採取所有的依賴關係,看看他們是否有正確的poms。 – morwed 2010-09-23 11:48:53