私はeclipse、maven、artifactoryを使用しています。私のartifactoryインストールは、中心のミラーリングを行います(https://repo1.maven.org/maven2/はartifactoryのリモートリポジトリとして追加されています)。eclipseでmaven依存関係を検索すると検索結果が不完全になる
eclipse内でmaven依存関係を検索すると、ほとんど結果が得られず、手動で追加する必要があります(正常に動作します)。インデックスが唯一の代わりにMavenの中央に見上げると、私がすでにインストールされている依存関係が含まれていることを思わ:
私はorg
の下でより多くのヒットを期待しても春-webmvcの複数のバージョンがあるはずです(maven central参照)。
私は、インデックスを再構築しようとしている:
が、それは効果がありません。私は日食の依存関係検索の目的を逃したのですか?私はMavenの中央ミラーリングするartifactoryを使用していますが、私が持っているの下に私の〜/ .m2/settings.xmlファイル(ダミー情報に置き換えられ、実際の情報)に
<?xml version="1.0"?>
<settings>
<mirrors>
<mirror>
<id>artifactory</id>
<name>Maven Repository</name>
<mirrorOf>*</mirrorOf>
<url>http://myhost/artifactory/simple</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>artifactory</id>
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
<servers>
<server>
<id>releases</id>
<username>admin</username>
<password>bla</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>bla</password>
</server>
<server>
<id>thirdparty</id>
<username>admin</username>
<password>bla</password>
</server>
<server>
<id>artifactory</id>
<username>admin</username>
<password>bla</password>
</server>
</servers>
</settings>
示唆したように構成されている書いたように
AFのプロキシ設定を削除しました。いいえプロキシは、このリモートリポジトリのために設定されていない
:私はまだMavenの-中央を指すリモートリポジトリを持っています。また、私は上記のリモートリポジトリを含む仮想リポジトリを作成しました:
その私は私の〜/ .m2/settings.xmlの私のローカルマシン上ファイルを持っているこの仮想リポジトリ:
<mirror>
<id>artifactory</id>
<name>Maven Repository</name>
<mirrorOf>*</mirrorOf>
<url>http://myhost/artifactory/simple</url>
</mirror>
私もMavenのインデクサーを使用可能に:
と実行を引き起こしたが効果がない、私はまだローカルで既に持っているものを除いて、Eclipse内からmaven-centralの検索ヒットは得られない〜/ .m2/repository。
それでも、Eclipse内の依存関係の検索には、マシンにローカルに格納されている成果物のみが含まれているようです。 Maven, Guide to Mirror Settings, Using A Single Repositoryによれば
私は何かを変更する必要がありますか?あなたの返信に基づいて投稿した現在の設定で何が間違っているのかはっきりとは分かりません。 – u123
@ u123申し訳ありませんが、私は何かが間違っています。私はそれに応じて_drorb_の答えに触発された私の答えを修正しました。 (これは、答える前に試したり試していないと起こります; –
私の提案はあなたの提案に基づいて更新されましたが、まだEclipseからは機能しません。 – u123