I'm using a script like this :
<target name="help">
<echo>Download a module and install it locally</echo>
<echo></echo>
<echo>Usage: ant -f build_repository.xml
[-Dinstall.target.repository=shared] [-Dinstall.transtivity=false]
install</echo>
<echo></echo>
<echo>The organisation, module and version are prompted.</echo>
<echo>By default, the module is installed on the local
repository
with dependencies.</echo>
</target>
<target name="install" depends="setup-ivy" description="Download a
module from ibiblio an install it on a local repository">
<input message="Organisation" defaultvalue="org.apache"
addproperty="install.org"/>
<input message="Module" addproperty="install.module"/>
<input message="Version" addproperty="install.version"/>
<property name="install.target.repository" value="local"/>
<property name="install.transtivity" value="true"/>
<echo>install.target.repository =
${install.target.repository}</echo>
<echo>install.transtivity = ${install.transtivity}</echo>
<ivy:install from="ibiblio" to="${install.target.repository}"
organisation="${install.org}"
module="${install.module}"
revision="${install.version}"
transitive="${install.transtivity}"
/>
</target>
2008/8/7 James Cowan <[EMAIL PROTECTED]>:
> is there an ivy equivalent of:
>
> mvn install:install-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1
> -Dpackaging=jar -Dfile=jms1.1.jar
>
> How do you get ivy to search other repositories?
>
> James
>
>
> 2008/8/7 Brown, Carlton <[EMAIL PROTECTED]>
>
>> JMS, like other Sun binaries, isn't hosed at the Maven2 central
>> repository due to licensing issues.
>> Here is their spiel on the matter:
>> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
>> In that spiel, they suggest pointing at download.java.net however I
>> don't see JMS hosted there (unless it is under some path where I haven't
>> looked). However, I did find it here:
>> http://repository.jboss.com/maven2/javax/jms/jms/1.1/
>>
>> I've gotten in the habit of using the jboss repository in one of my
>> chain resolvers. Between jboss, java.net, and maven central, generally
>> I can resolve whatever I need.
>>
>> -----Original Message-----
>> From: James Cowan [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, August 07, 2008 11:13 AM
>> To: [email protected]
>> Subject: jms1.1
>>
>> Hi
>>
>> I am getting this error when trying to include a dependency to jms1.1
>>
>> [ivy:retrieve]
>> [ivy:retrieve] :: problems summary ::
>> [ivy:retrieve] :::: WARNINGS
>> [ivy:retrieve] module not found: jms#jms;1.1
>> [ivy:retrieve] ==== libraries: tried
>> [ivy:retrieve] -- artifact jms#jms;1.1!jms.jar:
>> [ivy:retrieve] http://repo1.maven.org/maven2/jms/jms/1.1/jms-1.1.jar
>> [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
>> [ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
>> [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
>> [ivy:retrieve] :: jms#jms;1.1: not found
>> [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
>> [ivy:retrieve]
>>
>> How do I install jms1.1 manually in the local cache
>>
>> which directory do I put the jms.jar file.
>>
>> I have tried ~.ivy2/cache/jms/1.1/jms.jar and various permutations but
>> no joy.
>>
>> James
>>
>> -----------------------------------------
>> ====================================================
>> 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.
>> ====================================================
>>
>
--
Gilles Scokart