web-dev-qa-db-ja.com

Mavenは依存関係を解決できませんでした(戻りコードは409、ReasonPhrase:Conflict)

プロジェクトlcms.webで目標を実行できませんでした:

    Could not resolve dependencies for project lcms:lcms.web:war:0.0.1-SNAPSHOT: 
    Failed to collect dependencies for [junit:junit:jar:4.9 (test), org.springframework:spring-web:jar:4.2.4.RELEASE (compile), org.springframework:spring-webmvc:jar:4.2.4.RELEASE (compile), commons-logging:commons-logging:jar:1.1.1 (compile), 
org.springframework.security:spring-security-web:jar:4.0.3.RELEASE (compile), org.springframework.security:spring-security-config:jar:4.0.3.RELEASE (compile), org.springframework.security:spring-security-crypto:jar:4.0.3.RELEASE (compile), org.springframework.security:spring-security-ldap:jar:4.0.3.RELEASE (compile), commons-collections:commons-collections:jar:3.2.1 (compile), taglibs:standard:jar:1.1.2 (compile), commons-dbcp:commons-
dbcp:jar:20030825.184428 (compile), commons-pool:commons-pool:jar:20030825.183949 (compile), net.sourceforge.jtds:jtds:jar:1.3.1 (compile), org.springframework.ldap:spring-ldap-core:jar:2.0.4.RELEASE (compile), org.springframework.security:spring-security-cas:jar:4.0.3.RELEASE (compile), org.jasig.cas.client:cas-client-core:jar:3.1.12 (compile), com.googlecode.json-simple:json-simple:jar:1.1 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), javax.servlet:javax.servlet-api:jar:3.0.1 (provided), cglib:cglib:jar:2.2 (compile), antlr:antlr:jar:2.7.7 (compile), lcmsdaomodel:lcms.dao.model:jar:1.1.1 (compile), 
com.fasterxml.jackson.core:jackson-core:jar:2.6.5 (compile),
 com.fasterxml.jackson.core:jackson-databind:jar:2.6.5 (compile), commons-fileupload:commons-fileupload:jar:1.3.1 (compile), org.Apache.axis:axis-jaxrpc:jar:1.4 (compile), axis:axis:jar:1.4 (compile), org.Apache.poi:poi:jar:3.10-FINAL (compile), com.jolbox:bonecp:jar:0.8.0.RELEASE (compile), org.springframework.ws:spring-ws-core:jar:2.0.3.RELEASE (compile), commons-httpclient:commons-httpclient:jar:3.1 (compile), net.sf.json-lib:json-lib:jar:jdk15:2.4 (compile), org.Apache.httpcomponents:httpmime:jar:4.0.1 (compile)]: Failed to read artifact descriptor for lcmsdaomodel:lcms.dao.model:jar:1.1.1: Could not transfer artifact lcmsdaomodel:lcms.dao.model:pom:1.1.1 from/to snapshots (http://******/artifactory/ext-snapshot-local): Failed to transfer file: http://*******/artifactory/ext-snapshot-local/lcmsdaomodel/lcms.dao.model/1.1.1/lcms.dao.model-1.1.1.pom. Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1]
4
Noman Ahmed

SNAPSHOTリポジトリからRELEASEアーティファクトを解決しようとしているようです。そのため、Artifactoryがエラー(409競合)を送信しています。

ビルドを「libs-releases」仮想リポジトリ、またはリリースのみを保持するその他の仮想リポジトリに誘導する必要があります。リリースアーティファクトを保持するリポジトリのみがRELEASEアーティファクト解決のプロセスに関与します。

あなたはArtifactory Mavenリポジトリからの解決について ここ 詳細を読むことができます

9
Ariel

私はこの問題を抱えていて、私の.m2ディレクトリをクリアすることでそれを修正しました。

3

同じエラーが発生しました。スナップショットをデプロイしていましたが、snapshotRepository設定がメインのpomのdistributionManagementに含まれていませんでした。 snapshotRepositoryを追加して修正する

    <distributionManagement>
    <snapshotRepository>
        <id>snapshots</id>
        <name>libs-snapshot</name>
        <url>http://artifactory.private-apps.com/artifactory/libs-snapshot-local</url>
    </snapshotRepository>
</distributionManagement>
1
Ishfaq

エラーの詳細から、

Failed to transfer file: http://*******/artifactory/ext-snapshot-local/lcmsdaomodel/lcms.dao.model/1.1.1/lcms.dao.model-1.1.1.pom.
Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1]

ライブラリの手動スナップショットを展開するためにのみ使用されるリリースバージョンlcms.dao.modelをext-snapshot-localに展開しました。アーティファクトをチェックしてください ドキュメント

  1. lcms.dao.modelがリリースされたアーティファクトの場合、アーティファクトにログインし、アーティファクト->ツリーブラウザ-> ext-snapshot-localでこのライブラリのエントリを削除します。アーティファクトにこのライブラリのバージョンをリリースしている必要があります。
  2. これがスナップショットバージョンの場合、ライブラリを1.1.1-SNAPSHOTとしてバージョン付けする必要があります
0
GauravJ

アーティファのarchivaリポジトリディレクトリが誤って設定され、archivaに書き込みアクセス権がなかったため、このエラーが発生しました。

0
derwiwie