This worked for me -- place "ivysettings.xml" alongside build.xml
(ivy.xml) which contains refs that should be taken from a local m2
repo. If somebody knows how to override this gloabally, ideally with
something like:
ant -Divysettings=<override> ...
let me know, please.
Dawid
On Sat, Apr 14, 2012 at 11:45 AM, Dawid Weiss <[email protected]> wrote:
> Does anybody know how to make ivy work with a snapshot repository (for
> example sonatype's snapshots)? Or even a local JAR dependency? From
> what I see it's ivysettings blah blah but where do I put it and what
> do I put inside?
>
> Dawid
<settings defaultResolver="local-maven2">
<property name="local-maven2-pattern"
value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" override="false" />
<resolvers>
<filesystem name="local-maven2" m2compatible="true" >
<ivy pattern="${local-maven2-pattern}"/>
<artifact pattern="${local-maven2-pattern}"/>
</filesystem>
</resolvers>
</settings>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]