Frequently Asked Questions
Why does EasyAnt uses two ivy instance?
As you should know EasyAnt uses ivy as a dependency manager. EasyAnt uses two ivy instance :
used to resolve/retrieve EasyAnt modules (which can be buildtypes/ plugins or skeletons) dependencies
used to resolve/retrieve project dependencies
There is a strong separation of context, this means that plugins dependencies will not be polluting your project. Both instance are configurable.
Project ivy instance can be configured through an ivysettings file defined through properties. Click
here
if you want more details.
EasyAnt ivy instance can be configured through an ivysettings file defined in easyant-config. Click
here
if you want more details.
How can i configure a new repository?
Reporitories are defined in the
resolvers
node of an ivysettings file. Each dependency resolver is identified by its name, given as an attribute. The child tag used for the dependency resolver must be equal to a name of a dependency resolver type (either built-in or added with the typedef tag). Ivy comes with a set of built-in dependency resolvers able to answer to the most common needs like (non exhaustive) :
filesystem
ssh
ftp
url
ibiblio (maven repository)
Example
Defines a filesystem resolver, named '1', which is then used in two chains, the first which seconds the filesystem resolver with an ivyrep resolver, and second which seconds the filesystem resolver with an ibiblio resolver, and which returns the first module found, and uses the whole chain to download artifacts (see corresponding resolvers documentation for details about them). Resolver 1 will use a cache named 'cache-1' which should have been defined under the caches element. You can find more details
here
Does EasyAnt support Maven repositories?
Yes you can use Maven-like repositories by configuring a ibiblio resolver.
How can i reuse my maven local repository
If you find yourself wanting to reuse artifacts that you already have locally in your Maven2 repository, then you can add this line to your ivysettings :
Can i publish to a maven repository?
No, unfortunately this feature will be available in 0.8 release.
How can i disable a module?
You can disable a module by setting a magic property composed with the following syntax like :
skip.[mrid]
skip.[organisation]#[module];[revision]
skip.[as] (where as is the module alias name)
Example : Suppose we have a plugin declared like
You can disable the plugin by setting one of the following property to true:
skip.mycompany#foobar;0.1
skip.myalias
> easyant -Dskip.mycompany#foobar;0.1=true
or
> easyant -Dskip.myalias=true