ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praveen babu <>
Subject How can we download a jar without a version number using ivy?
Date Fri, 07 Mar 2008 01:18:05 GMT

I wanted to download a jar without any version from a shared repository. Can anyone suggest
me how to do this?
Right now I'm using simple steps given below: 

My repository is under C:\Tools:\Eval folder, and folder are is as follows:
- repositary

Whenever I run the build file It is downloading a "axis-.jar" instead of "axis.jar". 

Can anyone please have a look below files and let me know what to be done to get proper jar
Is this one is limitation of ivy or what? 



  <property name="ivy.local.default.root" value="C:\Tools\Eval"/>
  <property name="ivy.repositary" value="repositary"/>
  <property name="ivy.local" value="local"/>
  <property name="ivy.share" value="share"/>
  <property name="ivy.local.repo.path" value="${ivy.repositary}/${ivy.local}"/>
  <property name="ivy.share.repo.path" value="${ivy.repositary}/${ivy.share}"/>
  <settings defaultResolver="chain"/>
    <chain name = "chain" returnFirst="true" dual="true">
        <filesystem name="local">
          <artifact pattern="${ivy.local.default.root}/${ivy.local.repo.path}/[artifact]-[revision].[ext]"
        <filesystem name="share">
            <ivy pattern="${ivy.local.default.root}/${ivy.share.repo.path}/[artifact].[ext]"/>
            <artifact pattern="${ivy.local.default.root}/${ivy.share.repo.path}/[artifact].[ext]"
<!--        <ibiblio name="ibiblio" m2compatible="true" />-->


<ivy-module version="2.0">
    <info organisation="org.apache" module="hello-ivy"/>
           <conf name="build" visibility="private" description="compilation only need api
jar" />
        <conf name="noexternaljar" description="use only company jar" />
        <conf name="withexternaljar" description="use company jar and third party jars"
        <dependency org="test" name="test" rev="1.0"/>
        <dependency org="axis" name="axis" rev="">


<project name="hello-ivy" default="resolve" xmlns:ivy="antlib:org.apache.ivy.ant">
    <!-- some variables used -->
    <ivy:settings file="ivysettings..xml" />
    <!-- ================================= 
          target: resolve              
         ================================= -->
    <target name="resolve" description="--> retreive dependencies with ivy">
        <ivy:retrieve />

      Unlimited freedom, unlimited storage. Get it now, on
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message