2017-07-28 6 views
1

親モジュールを継承する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.xmldistarch-maven-snapshotsおよびdistarch-maven-stagingに定義されている両方のreposでアーティファクトを探します。このエラーは、リリースの代わりにスナップショットリポジトリから転送できないことを指していたため、誤解を招く可能性があります。私は以前これを見てきましたが、それは単にsnapshotsまたはstagingから転送できないことを意味します。

0.1ポンポンはレポ artifactory のステージングには存在しないと私はブラウザに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ファイルを表示することができます。 snapshotsstaging repoは同じArtifactoryに設定されています。スナップショットレポが動作している間にリリースレポから引き出すことができない理由は何でしょうか。

答えて

0

いくつかの理由でPOMが間違って命名されているようです:

com.lgc.dist.core.msp.service.pom-0.1.pom

それは名前を付ける必要があります。

com.lgc.dist.core.msp.service-0.1.pom

Aあなたはあなたが "-0.1.pom"であるべき ".pom-0.1.pom"を持っているのを見ることができます

それを変更してそれが動作するかどうか試してみることができますか?

関連する問題