次の問題が発生しました。Eclipe を開くと、すべてのプロセスが赤い X で署名されました。プロジェクト ツリーを開くと、ノードにエラー サインがありませんでした。エラーの原因は何もわかりませんでした。プロジェクトをビルドできませんでした。最後に、Eclipse 用の新しいワークスペースを作成し、SVN からプロジェクトをチェックアウトし、それらを Maven プロジェクトとしてインポートしました。(2 つのメイン プロジェクトといくつかの子プロジェクトがありました。) 赤い X を示す 2 つのプロジェクトがまだありますが、エラーの原因は示されていません。Eclipseでリフレッシュ、クリーンアップを試みました。エラーなしで他のプロジェクトをビルドすることはできません。もちろん、エラーのあるプロジェクトもビルドできません。エラーメッセージは次のとおりです。
[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]
誰でも私を助けてもらえますか?
編集:
どういう意味ですか:
スナップショット バージョン (Model-0.0.1-SNAPSHO T.pom) をリリースのみのリポジトリ ext-release-local にデプロイしようとしていますか? リリース リポジトリではなく、スナップショット リポジトリ (ext-snapshot-local など) を選択します。
pom.xml を変更する必要がありますか? どのように?以前は機能していた可能性があるかどうかはわかりませんが、今ではこのコンパイルの問題があります。他に何が変更できたでしょうか?私は意図的に何も変更しませんでした。
編集済み 2
また、.m2 フォルダーの下の settings.xml が存在しないことにも気付きました。Maven で何か問題が発生しました。