ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From limbicsystem <>
Subject Re: how to ignore missing metadata?
Date Tue, 01 Jan 2008 18:12:20 GMT

Sorry, I was confused about what was happening.  My <ivy:retrieve/> call was
failing because I had not previously called <ivy:resolve/>.  I see now that
resolve creates report XML files in the cache, which can then be used by
subsequent calls to retrieve.  Sorry for the newbie confusion.

So my question now is: what is the best way to force an initial resolve if
needed, without adding an explicit dependency retrieve -> resolve?  Resolve
can be quite slow (I guess it is verifying remote artifacts' metadata?), so
I think it should only be run when the dependencies list has changed.  I
supposed I could codify this manually in ant by comparing the timestamps of
ivy.xml vs the report files, but I'm wondering if there is a better way to
do it.



Xavier Hanin wrote:
> On Dec 28, 2007 6:04 PM, Limbic System <> wrote:
>> We have a custom maven1-style repository with several years' worth of
>> legacy
>> artifacts from our organization.  I seem to be able to resolve artifacts
>> from this repo, but my resolve/retrieve tasks always fail because there
>> is
>> no pom/ivy.xml metadata for the artifacts.  Is there a way to ask ivy to
>> ignore missing metadata?  I've tried setting transitive="false" as well
>> as
>> validate="false" to no good effect.
> Ivy can work with no metadata at all, and this is the default behavior. So
> my guess is that in your case Ivy finds some metadata but doesn't like it.
> Could you provide more details on the error you get and on your settings?
> Xavier
>> Thanks for your help,
>> L
> -- 
> Xavier Hanin - Independent Java Consultant

View this message in context:
Sent from the ivy-user mailing list archive at

View raw message