- Documentation (2.5.0-rc2-local-20180419193918)
- Release Notes
- Settings Files
- Ivy Files
- Ant Tasks
- post resolve tasks
- Using standalone
- Developer doc
File System Resolver
This resolver uses the file system to resolve Ivy files and artifacts. An advantage of this resolver is that it usually provides very good performance. Moreover, it is easy to setup using basic OS file sharing mechanisms.
The configuration of such a resolver is mainly done through Ivy and artifact patterns, indicating where Ivy files and artifacts can be found in the file system. These patterns must be absolute paths (since 2.0). You can indicate a list of patterns which will be checked one after the other.
(since 1.3) Using the
m2compatible attribute, this resolver will convert dots found in organisation into slashes like Maven 2 does for groupId. For instance, it will transform the organisation from
com/company when replacing the token
[organisation] in your pattern.
m2compatible mode, this resolver is not able list available organizations. It means some features like repreport are not available.
Atomic publish support
This resolver supports atomic publish, which is useful for environments with a lot of concurrent publish and resolve actions. The atomic publish relies on the atomicity of the rename operation in the underlying filesystem (which includes NTFS and POSIX based filesystems).
In this case the resolver starts by publishing the module according to the pattern, but where a
.part suffix is appended to the revision. Then the publish is committed with a rename to the final location.
Limitations Atomic publish is currently limited in several ways:
you need to use a pattern for both the artifact and the Ivy files which uses the revision as a directory. For instance,
both the artifact and Ivy pattern should have the same prefix until the
overwrite during publish is not supported
you should not use revision names ending with
transactional attribute can be used to configure the atomicity behavior:
use transaction if possible (according to limitation), otherwise don’t
always use transaction, fail the build if a limitation is not fulfilled
don’t use transaction at all
This resolver shares the common attributes of standard resolvers.
True if this resolver should be Maven 2 compatible, false otherwise (since 1.3)
No, defaults to false
True if this resolver should be considered local, false otherwise (since 1.4). See useOrigin attribute on the caches element for details.
No, defaults to true
true to force the use of transaction, false to prevent the use of transaction, auto to get transaction when possible (since 2.0). See above for details.
No, defaults to auto
defines a pattern for Ivy files, using the pattern attribute
defines a pattern for artifacts, using the pattern attribute