Now our resolvers will correctly handle multiple packages providing identical
GAs provided that just one has unversioned jar. Packages wanting to use
non-defaul GAV will have to either specify that exactly, or ask given package to
add additional compat version mapping manually (-v switch for add_maven_depmap)
We want to look into .m2 cache just in case we already have an artifact
there. This can help with fixing builds and testing new things. It also fixes
problems encountered by few projects that require themselves
- Make sure we look for original asked-for version first
version variable can be overwritten later in the function so we make
sure to use the original value
Fragments are also expected in /usr/share/maven-fragments where they
should be moved (backward compat preserved for now).
Big changes are due to reformatting to use spaces (sorry, cleaner
log/diff in separate resolver repo)
- Install maven metadata so they are not downloaded when mvn is run (667625)
repo-metadata.tar.xz will have to be updated as additional plugins need new metadata
- Make sure JavadirWorkspaceReader is used when building model (patch update)
Needed because WorkspaceReader is not used early when building mvn project
and this causes problems
- JavadirWorkspaceReader doesn't pretend to resolve non-existent artifacts anymore
Instead it returns null (artifact not found) so that reactor/local resolver can work as expected