1) Use alone
Ivy can be very easy to use as a separate program. All you need is a java1.4+ operating environment (JRE)!
This is an example of how to invoke it:
Java-jar Ivy.jar-?
It will enable online help like this:
= = Settings Options
-settings <settingsfile> Use given file for settings
-cache <cachedir> Use given directory for cache
-novalidate do not validate Ivy files against XSD
-m2compatible Use Maven2 compatibility
= = Resolve Options
-ivy <ivyfile> use given file as Ivy file
-dependency <organisation> <module> <revision>
Use this instead of Ivy file to do the rest of the
Work with this as a dependency.
-confs <configurations> Resolve given configurations
= = Retrieve options
-retrieve <retrievepattern> Use given pattern as retrieve
-sync use sync mode for retrieve
= = Cache Path Options
-cachepath <cachepathfile> outputs a classpath consisting of all dependencies
In cache (including transitive ones) of the given
Ivy file to the given Cachepathfile
= = Deliver options
-deliverto <ivypattern> use given pattern as resolved Ivy file pattern
= = Publish Options
-publish <resolvername> Use given resolver to publish to
-publishpattern <artpattern> Use given pattern to find artifacts to publish
-revision <revision> Use given revision to publish the module
-status <status> use given status to publish the module
= = http Auth options
-realm <realm> use given realm for HTTP AUTH
-host -username <username> use given username for HTTP AUTH
-PASSWD <passwd> use given password for HTTP AUTH
= = Launcher Options
-main <main> The FQCN of the main class to launch
-args <args> The arguments to give to the launched process
-CP <cp> extra classpath to use when launching process
= = Message Options
-debug set message level to debug
-verbose set message level to verbose
-warn set message level to warn
-error Set message level to error
= = Help Options
-? Display this Help
-deprecated Show deprecated options
System attributes are included in the Ivy variable since version 1.3, so you can easily define ivy variables, like this: