[NEXUS-5957] Use try with resources

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Remove "/repodata" using repository API when only one yum member

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Write lock "/repodata/repomd.xml" of group while merging

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Install a merge request strategy on group repos that will fetch members repomd.xml when group repomd.xml is requested

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Disable DEBUG on capabilities as it only clutters the log

Also drop installation of capabilities plugin as plugin is already in oss bundle template

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Fix shouldReFetchProxyMetadata IT to not trigger merge by uploading to a hosted repo & drop duplicated tests

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Revert "[NEXUS-5957] Remove "/repodata" using repository API when only one yum member" because group repositories does not allow delete operations (read only)

This reverts commit bdf327aa0fb4ba4614eaa8f8c9015446e3331165.

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>

Conflicts:
	plugins/yum/nexus-yum-repository-plugin/src/main/java/org/sonatype/nexus/yum/internal/task/MergeMetadataTask.java
[NEXUS-5957] Drop @Ignored as now the IT should work / Organise imports

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Fix item max age (should be zero = always go remote)

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Log that we are fetching repomd.xml

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NXCM-5957] Add additional remote logging

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Log the fact that repomd.xml changed for a proxy / Use constant for repomd.xml path

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Only act when original request path should change

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Use try with resources

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Fix TODOs (log that we cannot process & ignore) / Fix logger

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Fix log message

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Improve logging

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Check if proxy yum metadata changes and if so run a merge task

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Add additional logging

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5957] Add missing @Inject

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>