ここでは、SonatypeMavenリポジトリを使用します。これは私たちのMavenプロジェクトにとっては素晴らしいことですが、依存関係の管理にAnt + IVYを使用するレガシーアプリケーションがあり、Mavenからの依存関係が必要になりました。
私のIVY設定ファイルは次のようになります。
<ivysettings>
<property name="dsnexus-root" value="http://internal-url/" override="false"/>
<credentials host="hostname" username="username" passwd="XXXX"/>
<!-- ... -->
<resolvers>
<chain name="shared">
<url name="shared-default">
<!-- ... -->
</url>
<url name="dsnexus-public" m2compatible="true">
<artifact pattern="${dsnexus-root}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
</url>
</chain>
</resolvers>
<modules>
<module organisation=".*" name=".*" resolver="shared"/>
</modules>
<!-- ... -->
</ivysettings>
しかし、自分の担当者を解決しようとすると、内部リポジトリから何も見つかりません
例えば
module not found: xerces#xercesImpl;2.9.1
==== shared-default: tried
...
==== dsnexus-public: tried
-- artifact xerces#xercesImpl;2.9.1!xercesImpl.jar:
http://internal-url/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
そしてもちろん、depはそのURLに存在します。
私も試しました
<ibiblio name="dsnexus-public"
root="${dsnexus-root}"
m2compatible="true"
namespace="maven2"/>
同じ結果が得られました。
私の推測では、私が間違っている資格情報について何かがあります。