]
Thorsten Meinl updated SHRINKRES-303:
-------------------------------------
Attachment: shrinkres-303.zip
Dependencies with version ranges cannot be resolved in offline mode
-------------------------------------------------------------------
Key: SHRINKRES-303
URL:
https://issues.redhat.com/browse/SHRINKRES-303
Project: ShrinkWrap Resolvers
Issue Type: Bug
Affects Versions: 3.1.3
Reporter: Thorsten Meinl
Priority: Major
Attachments: shrinkres-303.zip
We are using Maven version ranges for several dependencies in our project. Shrinkwrap is
able to resolve those correctly as long it has access to the remove repository (or
mirror). However, when the resolver is put into offline mode ({{workOffline()}}),
dependencies with version ranges cannot be resolved any more although they are
present/cached in the local .m2 repository.
The reason seems to be that as soon as you use version ranges, _maven-metadata.xml_ files
are used. However, when being in offline mode only _maven-metadata-local.xml_ is inspected
during resolution but not _maven-metadata-mirror.xml_ (for example).
maven-metadata-local.xml either doesn't exist at all or contains only locally
{{install}} ed artifacts but no cached remote artifacts.