親モジュールを継承するmavenプロジェクトをビルドしています。親com.xxx.dist.core.msp.service.pom
のリリースレポから依存関係アーティファクトをダウンロードできません
<parent>
<groupId>com.xxx.dist</groupId>
<artifactId>com.xxx.dist.core.msp.service.pom</artifactId>
<version>0.1-SNAPSHOT</version> <!-- 0.1 for release -->
</parent>
<artifactId>com.lgc.dist.core.msp.service.kafka</artifactId>
アーチファクトは、スナップショットリポジトリ(バージョン0.1-SNAPSHOT)と解放リポジトリ(バージョン0.1)の両方に掲載されています。
mvn deploy
は、スナップショットの展開用に実行されます。親ポンポンが正常にダウンロードすることができます。リリースの
[INFO] Downloading: https://repo.openearth.community/artifactory/distarch-maven-snapshots/com/xxx/dist/com.xxx.dist.core.msp.service.pom/0.1-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: https://repo.openearth.community/artifactory/distarch-maven-snapshots/com/xxx/dist/com.xxx.dist.core.msp.service.pom/0.1-SNAPSHOT/maven-metadata.xml (599 B at 1.9 KB/sec)
[INFO] Downloading: https://repo.openearth.community/artifactory/distarch-maven-snapshots/com/xxx/dist/com.xxx.dist.core.msp.service.pom/0.1-SNAPSHOT/com.xxx.dist.core.msp.service.pom-0.1-20170726.184445-38.pom
[INFO] Downloaded: https://repo.openearth.community/artifactory/distarch-maven-snapshots/com/xxx/dist/com.xxx.dist.core.msp.service.pom/0.1-SNAPSHOT/com.xxx.dist.core.msp.service.pom-0.1-20170726.184445-38.pom (14 KB at 664.4 KB/sec)
Mavenのリリースプラグインでビルドしかし、リリースレポから親ポンポンをダウンロードすることができていないようです:
[INFO] Downloading: https://repo.openearth.community/artifactory/distarch-maven-snapshots/com/xxx/dist/com.xxx.dist.core.msp.service.pom/0.1/com.xxx.dist.core.msp.service.pom-0.1.pom
[INFO] Downloading: https://repo.openearth.community/artifactory/distarch-maven-staging/com/xxx/dist/com.xxx.dist.core.msp.service.pom/0.1/com.xxx.dist.core.msp.service.pom-0.1.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.xxx.dist:com.xxx.dist.core.msp.service.kafka:[unknown-version]: Could not transfer artifact com.xxx.dist:com.lgc.dist.core.msp.service.pom:pom:0.1 from/to snapshots (https://repo.openearth.community/artifactory/distarch-maven-snapshots): Failed to transfer file: https://repo.openearth.community/artifactory/distarch-maven-snapshots/com/xxx/dist/com.xxx.dist.core.msp.service.pom/0.1/com.xxx.dist.core.msp.service.pom-0.1.pom. Return code is: 409 , ReasonPhrase:Conflict. and 'parent.relativePath' points at wrong local POM @ line 4, column 10
それはしようとしましたMavenのsettings.xml
、distarch-maven-snapshots
およびdistarch-maven-staging
に定義されている両方のreposでアーティファクトを探します。このエラーは、リリースの代わりにスナップショットリポジトリから転送できないことを指していたため、誤解を招く可能性があります。私は以前これを見てきましたが、それは単にsnapshots
またはstaging
から転送できないことを意味します。
0.1ポンポンはレポ のステージングには存在しないと私はブラウザにURL全体https://repo.openearth.community/artifactory/distarch-maven-staging/com/xxx/dist/com.xxx.dist.core.msp.service.pom/0.1/com.xxx.dist.core.msp.service.pom-0.1.pom
を貼り付けた場合、私はPOMファイルを表示することができます。 snapshots
とstaging
repoは同じArtifactoryに設定されています。スナップショットレポが動作している間にリリースレポから引き出すことができない理由は何でしょうか。