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
ganisation]/[module]/[revision]/[artifact]-[revision].[ext]" />

      <artifact
pattern="http://dpmsandbox:8080/archiva/repository/m2-central-cached/[or
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.
====================================================

Reply via email to