私のチームはJFrogアーティファクトを使用しており、サードパーティ製のlibが配備されています。サードパーティライブラリを使用したJFrog artifactory(snapshot-repo)のjarファイルがmavenに見つかりません
私のsettings.xml:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>dev</id>
<properties>
<artifactory.url>http://myartifactory.com</artifactory.url>
<artifactory.username>blah</artifactory.username>
<artifactory.passwd>blah</artifactory.passwd>
<artifactory.maven.snapshot>maven-integration-local</artifactory.maven.snapshot>
<artifactory.maven.thirdparty>maven-third-party-local</artifactory.maven.thirdparty>
<artifactory.maven.rc>maven-release-candidate-local</artifactory.maven.rc>
<artifactory.maven.release>maven-release-local</artifactory.maven.release>
<artifactory.maven.all>maven-repo</artifactory.maven.all>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>snapshot-repo</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>interval:1</updatePolicy>
</snapshots>
<name>maven-integration-local</name>
<url>http://myartifactory.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jcenter</id>
<url>http://jcenter.bintray.com</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>artifactory-plugin</id>
<url>${artifactory.url}/${artifactory.maven.all}</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
artifactoryは、私自身のプロジェクトは(自分のローカルプロジェクトを構築するためのPOMのBOMスタイルのインポート)に依存しているポンポンが含まれています。そして、それは特定のjarファイルに到達するまでのmavenが正常FINEすべてをダウンロードしているように見える:1.1.0:
は、プロジェクトのXXXの依存関係を解決できませんでした次 アーティファクトは解決できませんでした:com.japisoft:xmlpad -res:jar:3.7
私はチェックして、実際にはアーティファクト(xmlpad-res-3.7.jar)にjarが存在しますが、見つからないと主張しています。私はjarをダウンロードし、プラグインをインストールするmavenを使ってインストールしようとしましたが、これは役に立たなかった。
なぜファイルを見つけることができないのですが、何ができるのですか?
mavenリポジトリを見つけてそこにファイルを置くと、pom.xmlにも依存関係が追加されます。あなたはそれを見つける方法がわからない場合:http://www.mkyong.com/maven/where-is-maven-local-repository/ – PSo
@パトリックあなたのコメントのおかげで。私はそれがリポジトリのセクションがしようとしているものだと思います。ファイルは私のアーティファクトリポジトリにあります。しかし、mavenは何らかの奇妙な理由でそこからダウンロードできません。また、mavenインストーラプラグインを使用してプラグインをローカルMavenリポジトリにインストールしようとしましたが、それでも見つからないことに注意してください。私はローカルリポジトリのリポジトリ定義を追加する必要はありませんか?私が間違っているなら私を訂正してください。 – Nena
Mavenは、アーティファクトを解決しようとするパスを表示します。それをコピーしてブラウザに貼り付け、URLの最後に '?trace 'を追加します。これは、Artifactoryがアーティファクトを解決しようとする方法と、それが404に終わる理由についてのトラブルシューティングのトレースを提供するはずです。そうでない場合は、トレース出力を質問に追加して、そこから取得します。 – JBaruch