Artifactoryベースのリポジトリにedireader.jarという名前の特定の jar をデプロイしています。Artifactory の Edireader のリポジトリ ブラウザ ページには、次の依存関係が表示されます。モジュールのPOM.xml内で使用しているのと同じ依存関係。
<dependency>
<groupId>com.berryworks</groupId>
<artifactId>edireader</artifactId>
<version>4.7.3</version>
</dependency>
maven install の実行中に、次のエラーが発生します。
“com.berryworks:edireader:jar:4.7.3 (compile)]: Failed to read artifact descriptor for com.berryworks:edireader:jar:4.7.3: Could not find artifact com.berryworks:berryworks:pom:4.7.3 in central (http://SERVER_Name:PORT/artifactory/libs-releases)”
そして、SERVER_Name:PORT/artifactory/libs-snapshots/com/berryworks/berryworks/4.7.3/berryworks-4.7.3.pom から jar をダウンロードしようとしていますが、jar は //SERVER_Name:PORT/artifactory にあるため、間違っているようです。 /simple/libs-releases-local/com/berryworks/edireader/4.7.3/
私はすべてを変更しようとしましたが、問題を特定できませんでした.私の質問は、artifactory サーバーに存在するため、maven のインストール中に jar を選択しない理由です。
編集:これは私が使用しているsettings.xmlです
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-releases</name>
<url>http://SERVER_Name:PORT/artifactory/libs-releases</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshots</name>
<url>http://SERVER_Name:PORT/artifactory/libs-snapshots</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-releases</name>
<url>http://SERVER_Name:PORT/artifactory/plugins-releases</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshots</name>
<url>http://SERVER_Name:PORT/artifactory/plugins-snapshots</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>