發生以下問題:一旦我打開Eclipe,所有的過程都用紅色X簽名。打開projet樹,節點中沒有錯誤簽名。 Nothig向我展示了造成錯誤的原因。我無法建立這些項目。最後,我爲Eclipse創建了一個新的工作區,從SVN中檢出項目,並將它們導入爲Maven項目。 (有兩個主要和幾個子項目。) Ther仍然是兩個顯示紅色X的項目,但沒有顯示導致錯誤的原因。我試圖刷新,在Eclipse中清理。我無法建立其他項目也沒有錯誤,當然也不是那些有錯誤的項目。該錯誤消息是例如: -Maven錯誤和構建faliure
[WARNING] Some problems were encountered while building the effective model for hu.bz.ikti.insurance:SAMCommon:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ hu.bz.ikti.insurance:InSurance:0.0.1-SNAPSHOT, C:\Dev\workspace\InSurance\pom.xml, line 27, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SAM-függő közös osztályok 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for hu.bz.ikti:common:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.110s
[INFO] Finished at: Fri Jul 12 11:33:33 CEST 2013
[INFO] Final Memory: 4M/114M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project SAMCommon: Could not resolve dependencies for project hu.bz.ikti.insurance:SAMCommon:jar:0.0.1-SNAPSHOT: Could not find artifact hu.bz.ikti:common:jar:0.0.1-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
和消息的erroneus項目的部分是:
[ERROR] Failed to execute goal on project Service: Could not resolve dependencies for project hu.bz.ikti.insurance:Service:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [org.springframework:spring-context:jar:3.1.2.RELEASE (compile), org.springframework:spring-core:jar:3.1.2.RELEASE (compile), org.springframework:spring-beans:jar:3.1.2.RELEASE (compile), commons-dbcp:commons-dbcp:jar:1.4 (compile), postgresql:postgresql:jar:9.1-901-1.jdbc4 (compile), org.springframework:spring-tx:jar:3.1.2.RELEASE (compile), hu.bz.ikti.insurance:Model:jar:0.0.1-SNAPSHOT (compile), org.springframework:spring-orm:jar:3.1.2.RELEASE (compile), hu.bz.ikti:service-base:jar:0.0.1-SNAPSHOT (compile), org.springframework:spring-test:jar:3.1.2.RELEASE (compile), org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 (compile)]: Failed to read artifact descriptor for hu.bz.ikti.insurance:Model:jar:0.0.1-SNAPSHOT: Could not transfer artifact hu.bz.ikti.insurance:Model:pom:0.0.1-SNAPSHOT from/to ikti (https://fcd3.ikti.hu/artifactory/ext-release-local): Failed to transfer https://fcd3.ikti.hu/artifactory/ext-release-local/hu/bz/ikti/insurance/Model/0.0.1-SNAPSHOT/Model-0.0.1-SNAPSHOT.pom. Error code 409, The repository 'ext-release-local' rejected the artifact 'ext-release-local:hu/bz/ikti/insurance/Model/0.0.1-SNAPSHOT/Model-0.0.1-SNAPSHOT.pom' due to its snapshot/release handling policy. -> [Help 1]
任何人都可以幫我嗎?
編輯:
是什麼意思:
You are trying to deploy a snapshot version (Model-0.0.1-SNAPSHOT.pom) into a releases-only repository ext-release-local ? Select a snapshot repository (e.g. ext-snapshot-local) instead of a release one.
我應該改變我的pom.xml?怎麼樣?我不明白它早些時候如何工作,但現在有這個編譯問題。還有什麼可以改變的?我沒有改變任何意圖。
編輯2
我也注意到,.m2目錄文件夾下的settings.xml不存在。 Maven真的出了問題。
該消息的重要部分是「錯誤代碼409,存儲庫'ext-release-local'拒絕了該產品'ext-release-local:hu/bz/ikti/insurance/Model/0.0.1-SNAPSHOT/Model -0.0.1-SNAPSHOT.pom'由於其快照/發佈處理策略。「檢查遠程回購(Nexus,Artifactory或其他)以找出問題所在。 – user944849