それをより意味のあるものにするために質問するための極端な編集:
オンラインリポジトリからプルできるバージョンではなく、ローカルバージョンのhttpclientを使用する必要があると仮定しましょう(署名の理由により)。私がこれを処理したい方法はそうです...
ivy.xml
<dependencies>
...Other dependencies here
<dependency org="com.apache" name="httpclient" rev="4.2.2" conf="compile->default" ext="jar" />
</dependencies>
ivysettings.xml
<settings defaultResolver="central"/>
<resolvers>
<url name="repo">
<ivy pattern="http://myServer:8080/Repo/[organisation]/[artifact]/[revision]/ivy.xml" />
<artifact pattern="http://myServer:8080/Repo/[organisation]/[artifact]/[revision]/[artifact].[ext]"/>
</url>
<url name="httpclient">
<artifact pattern="http://myServer:8080/Repo/com.apache/httpclient/4.2.2/[artifact].[ext]"/>
</url>
<modules>
<module organisation="com.apache" resolver="repo" />
<module organisation="com.httpclient" resolver="httpclient" />
</modules>
ここで私が望んでいるのは(そしてあまり運がなかった)、com.apacheリゾルバーがmyServer:8080 / Repo / com.apache / httpclient / 4.2.2 / ivy.xmlを探して、それを読んでいることです。そのファイルの内容は次のとおりです。
ivy.xml(myServer:8080 / repo / ...ディレクトリ内)
<dependency org="com.httpclient" name="commons-codec" rev="1.6" />
<dependency org="com.httpclient" name="commons-logging" rev="1.1.1" />
<dependency org="com.httpclient" name="fluent-hc" rev="4.2.2" />
<dependency org="com.httpclient" name="httpclient" rev="4.2.2" />
<dependency org="com.httpclient" name="httpclient-cache" rev="4.2.2" />
<dependency org="com.httpclient" name="httpcore" rev="4.2.2" />
<dependency org="com.httpclient" name="httpmime" rev="4.2.2"/>
最初のファイルにマークアップを含めるのではなく、2番目のxmlファイルを読みたい理由は、頻繁に含めるものに追加されるLOCの数を考えると非常に明白です。また、将来のすべてのインクルードも簡単になります。
今私が得ているエラーは次のとおりです。
一部のプロジェクトが解決されないcom.myCompany#myProgramt; working @ CompNameの依存関係を解決できません未解決の依存関係:com.apache#httpclient; 4.2.2:見つかりません
この件についてご協力いただきありがとうございます。