localhostにアーティファクトを設定しました(サーバーをセットアップする前にlocalhostを試しています)が、Mavenプロジェクトでこのリポジトリを使用すると、ライブラリを取得できません。助言がありますか?
2 に答える
5
Artifactoryは、Artifactoryで構成されたリポジトリーと選択内容に基づいてMaven設定ファイルを生成する小さなユーティリティを提供します。リポジトリが適切に構成されていると仮定すると、このユーティリティは通常、適切に機能します。
于 2012-10-20T17:40:47.427 に答える
0
試してみてください(ID ClaudioStasを中央に変更してください):
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>http://localhost:8081/artifactory/libs-release</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://localhost:8081/artifactory/libs-snapshot</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-release</name>
<url>http://localhost:8081/artifactory/plugins-release</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshot</name>
<url>http://localhost:8081/artifactory/plugins-snapshot</url>
</pluginRepository>
</pluginRepositories>
于 2012-10-20T16:46:16.177 に答える