[NEXUS-4766] Use classifier/extension from existing maven metadata if available

This will force using the classifier/extension that was uploaded by maven, which is correct in case of classifiers with dots

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-4766] Add UT for regenerating metadata for artefacts with a classifier with dots

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5742] Create an auth/proxy auth preconfigured http client and avoid context based credentials provider

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NXCM-5214] Replace plexus annotations with jsr330

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Fix expected number of components (one test task is now using jsr330 instead of plexus) and use test utils to get "target/test-classes" dir

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NXCM-5214] Use constructor injection

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Remove obsolete test files

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NXCM-5214] Replace plexus annotations with jsr330

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NXCM-5214] Let tasks define their own logger (if they need it)

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NXCM-5213] Drop usage of plexus container as the key in active tasks map is the class name of running task

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
NEXUS-5734: Dump empty prefix files

Unsure is this correct, or in general, is it correct
to have empty prefix file published (repo is empty?).
Typo fix
NEXUS-5661: Proxy repo prefix file does not include paths only available from local storage

Code change and UT (by reusing PrefixFileForProxiesAreUnmodifiedTest)
that would test an untrue condition. This change implies that
proxy prefix files are not unmodified anymore.
Added UT
NEXUS-5747: Support packaging bundle

Added bundle to defaults and added UT for
DefaultArtifactPackagingMapper.

Note: while issue points at ASF Maven Indexer
mapper, the Nexus Maven Indexer integration actually
redirects MI to this (changed) component. So,
this applies the fix to Nexus, but does not
applies the same to MI...
NEXUS-5734: Ahem, wrongly placed condition

And UT actually tests it IS thrown, so passed
and not caught, but all the other UTs did.
NEXUS-5734: Reworked imple

As initial imple was pretty much to strict.
So now the constraint is applied only to files
got from remote, as it was initially intended
NEXUS-5661: Fixing the UT

Now that the local storage is counted as prefixes source,
the nuking of local storage happened at bad place, after
prefix file was rebuilt.

Moved local storage nuking to proper place, to
happen before prefix file is rebuilt.
[NXCM-5213] Use task.getTask().getClass() to determine class of active task

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Merge pull request #28 from sonatype/nexus-5742-pr-via-auth-proxy

REVIEW: [NEXUS-5742] Create an auth/proxy auth preconfigured http client and avoid context based credentials provider