私のMavenアーティファクトはNexusスナップショットリポジトリにデプロイされています。そこでは正しいディレクトリに保存されますが、そのファイル名は次のパターンになっています。
mylibrary-1.0-20130213.125827-2.jar
ただし、Mavenはそのスナップショットのダウンロードに失敗します。エラーログによると、Mavenは次のファイル名を期待しているようです。
mylibrary-1.0-SNAPSHOT.jar
これらは私のpomのリポジトリ設定です:
<repositories>
<repository>
<id>mycompany-all</id>
<url>https://servername/nexus/content/groups/mycompany/</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>mycompany-releases</id>
<url>https://servername/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>mycompany-snapshots</id>
<url>https://servername/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
注:ネクサスグループには、releases
とsnapshots
リポジトリの両方が含まれます。
これらのリポジトリを構成しませんでしたsettings.xml
-それが問題ですか?または私は他に何が間違っていますか?