This was a remote headphone publication, offering an alternative way to build distributions from the contents of the Maven repository:
Ivy is an alternative dependency management client that can be run from as follows:
java -jar ivy.jar -settings ivysettings.xml -dependency org.cometd.jetty cometd-jetty-client 1.0-SNAPSHOT -retrieve "distrib/[artifact]-[revision](-[classifier]).[ext]"
The ivy command's retrieve parameter specifies how downloaded files should be stored locally:
-- distrib |-- cometd-api-1.0-SNAPSHOT.jar |-- cometd-jetty-client-1.0-SNAPSHOT.jar |-- cometd-jetty-client-1.0-SNAPSHOT-javadoc.jar |-- cometd-jetty-client-1.0-SNAPSHOT-sources.jar |-- cometd-jetty-server-1.0-SNAPSHOT.jar |-- jetty-6.1.15.jar |-- jetty-client-6.1.15.jar |-- jetty-sslengine-6.1.15.jar |-- jetty-util5-6.1.15.jar |-- jetty-util-6.1.15.jar `-- servlet-api-2.5-20081211.jar
It turns out the correct temporary artifact, but the revision number "SNAPSHOT" is saved, which I understand what you are trying to do.
The ivysettings file describes the repositories that will be used when loading artifacts:
<ivysettings> <settings defaultResolver="repos"/> <resolvers> <chain name="repos"> <ibiblio name="central" m2compatible="true"/> <ibiblio name="cometd-snapshot" root="https://oss.sonatype.org/content/repositories/cometd-snapshots/" m2compatible="true"/> </chain> </resolvers> </ivysettings>
Mark o'connor
source share