1 Jan 2008 20:21
[groovy-user] Re: [gant-user] Help with Ivy
On Mon, 2007-12-31 at 17:47 +0000, Russel Winder wrote: > No ivy:settings found for the default reference 'ivy.instance'. A > default instance will be used > no settings file found, using default... > [ivy:cachepath] :: Ivy 2.0.0-beta1 - 20071206070608 :: > http://ant.apache.org/ivy/ :: > :: loading settings :: url = > jar:file:/home/users/russel/lib/Java/groovy/lib/ivy-2.0.0-beta1.jar!/org/apache/ivy/core/settings/ivysettings.xml > > BUILD FAILED > /home/Checkouts/SVK/Gant/local/gant/trunk/examples/ivy/build.xml:36: > impossible to resolve dependencies: > java.lang.NullPointerException It turns out that this is the error message you get when you give the wrong organization in an ivy:cachepath call. So I changed: <ivy:cachepath organisation="apache" module="commons-lang" revision="2.3" pathid="lib.path.id" inline="true"/> which gives the above error to: <ivy:cachepath organisation="commons-lang" module="commons-lang" revision="2.3" pathid="lib.path.id" inline="true"/> and it all worked as required. I think the moral of this episode is clear to all and it revolves around the idea of providing sensible feedback. -- -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077
RSS Feed