On Feb 12, 2008 5:00 PM, Brown, Carlton <[EMAIL PROTECTED]> wrote: > Seems like a strange place to put that setting... I would have assigned > it as an attribute of a URL resolver since different sites could > potentially use different credientials.
Agreed, it's there for legacy reason, feel free to open an issue to request something better. Xavier > > > But thank you for the advice, it works. > > -----Original Message----- > From: Xavier Hanin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 12, 2008 10:54 AM > To: [EMAIL PROTECTED] > Subject: Re: Question about resolution error > > HTTP Authentication configuration is done in the settings task: > http://ant.apache.org/ivy/history/latest-milestone/use/settings.html > > Xavier > > On Feb 12, 2008 4:46 PM, Brown, Carlton <[EMAIL PROTECTED]> > wrote: > > > A bit more information... looks like it's a 401 error > (authentication). > > The repository is challenging the client for a username/password. > > > > Does the URL resolver have attributes to specify a valid > > username/password? > > > > [ivy:resolve] m2-cached-http: no latest strategy defined: using > default > > [ivy:resolve] trying > > > http://dpmsandbox:8080/archiva/repository/m2-central-cached/commons-lang > > /commons-lang/2.0/commons-lang-2.0.jar > > [ivy:resolve] tried > > > http://dpmsandbox:8080/archiva/repository/m2-central-cached/commons-lang > > /commons-lang/2.0/commons-lang-2.0.jar > > [ivy:resolve] authentication: k='Repository Maven2 Central Proxy > > [EMAIL PROTECTED] c='null' > > > > -----Original Message----- > > From: Brown, Carlton [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 12, 2008 10:28 AM > > To: [EMAIL PROTECTED] > > Subject: Question about resolution error > > > > Hi all, > > > > > > > > I'm getting a url resolver error on a URL that is known to be valid. > > This URL repository does not have ivy files, but it is a mirror of > Maven > > central repository and therefore has all the Maven metadata. I > tested > > its validity by cutting and pasting the "tried" URL below into a > > browser, which downloads the jar successfully. > > > > > > > > What have I done wrong? Must there be an ivy.xml file in the > > repository, or must I set some flag to use Maven metadata and poms > > instead of ivy files? > > > > > > > > Error: > > > > [ivy:resolve] ==== m2-cached-http: tried > > > > [ivy:resolve] -- artifact > > commons-lang#commons-lang;2.0!commons-lang.jar: > > > > [ivy:resolve] > > > http://dpmsandbox:8080/archiva/repository/m2-central-cached/commons-lang > > /commons-lang/2.0/commons-lang-2.0.jar > > > > [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: > > > > [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: > > > > [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: > > > > [ivy:resolve] :: commons-lang#commons-lang;2.0: not found > > > > [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: > > > > [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > > > > Class org.apache.tools.ant.BuildEvent loaded from parent loader > > (parentFirst) > > > > > > > > BUILD FAILED > > > > C:\allworkspaces\ivy-poc\hellorm\hello-A\build.xml:37: impossible to > > resolve dependencies: > > > > > > > > Resolve task: > > > > > > > > <ivy:resolve file="ivy.xml" > > > > settingsRef="module-settings"/> > > > > > > > > <ivy:cachepath > > > > organisation="commons-lang" > > > > module="commons-lang" > > > > revision="2.1" > > > > pathid="commons-lang.path.id" > > > > inline="false"/> > > > > > > > > Resolver: > > > > > > > > <url name="m2-cached-http" m2compatible="true"> > > > > <artifact > > > pattern="http://dpmsandbox:8080/archiva/repository/m2-central-cached/[or<http://dpmsandbox:8080/archiva/repository/m2-central-cached/%5Bor> > <http://dpmsandbox:8080/archiva/repository/m2-central-cached/%5Bor> > > ganisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> > > > > <artifact > > > pattern="http://dpmsandbox:8080/archiva/repository/m2-central-cached/[or<http://dpmsandbox:8080/archiva/repository/m2-central-cached/%5Bor> > <http://dpmsandbox:8080/archiva/repository/m2-central-cached/%5Bor> > > ganisation]/[module]/[revision]/[artifact].[ext]" /> > > > > </url> > > > > > > > > > > ----------------------------------------- > > ==================================================== > > 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/ > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/
