Hereabouts, we use a Sonatype Maven repository. This is jolly nice for our maven projetcs, but we have a legacy application that uses Ant+IVY for dependency management which now needs a dep from Maven.
My IVY settings file looks like:
<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>
But when I try to resolve my deps it doesn't find anything from the internal repo
e.g.
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
And of course, the dep does exist on that url.
I have also tried
<ibiblio name="dsnexus-public"
root="${dsnexus-root}"
m2compatible="true"
namespace="maven2"/>
and got the same result.
My guess is there is something about the credentials I have got wrong.