On Mon, Mar 10, 2008 at 7:59 PM, Brown, Carlton
<Carlton.Brown@compucredit.com> wrote:
>
> > -----Original Message-----
> > From: Xavier Hanin [mailto:xavier.hanin@gmail.com]
> > Sent: Monday, March 10, 2008 2:44 PM
> > To: ivy-user@ant.apache.org
> > Subject: Re: useMavenMetadata not implemented on ibiblio resolver?
> >
> > On Mon, Mar 10, 2008 at 7:38 PM, Brown, Carlton
> > <Carlton.Brown@compucredit.com> wrote:
> > > I tried to set useMavenMetadata according to the documentation on
> > > ibiblio resolver like this:
> > >
> > > <ibiblio name="m2-proxied-http"
> > >
> > root="http://myrepo:8080/archiva/repository/m2-central-cached"
> > > m2compatible="true"
> > > usepoms="true"
> > > useMavenMetadata="true"
> > > checkmodified="true" >
> > > </ibiblio>
> > >
> > > This error was the result:
> > >
> > > impossible to configure ivy:settings with given file:
> > > ivy-settings.xml
> > > :java.text.ParseException: failed to load settings from
> > > file:/ivy-settings.xml: problem in config file: failed to load
> > > settings from file:/ivy-settings.xml: no set method found for
> > > useMavenMetadata on class
> > > org.apache.ivy.plugins.resolver.IBiblioResolver
> > >
> > > Does Ivy not implement this attribute, or have I made an error
> > > somewhere?
> > This is strange, it should work. Which version of Ivy are you using?
> > BTW, true is the default for useMavenMetadata.
>
> I'm using 2.0.0-beta1.
This attribute was not available in 2.0 beta 1:
http://ant.apache.org/ivy/history/2.0.0-beta1/resolver/ibiblio.html
It has been introduced in beta 2.
Xavier
> I like to set important attributes explicitly.
> It helps the poor maintainers who will inherit my code and will not know
> the attribute's default value in the ancient year 2008.
>
>
>
> -----------------------------------------
> ====================================================
> This message contains PRIVILEGED and CONFIDENTIAL
> information that is intended only for use by the
> named recipient. If you are not the named recipient,
> any disclosure, dissemination, or action based on
> the contents of this message is prohibited. In such
> case please notify us and destroy and delete all
> copies of this transmission. Thank you.
> ====================================================
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/
|