Remove unnecessary repository preparation in metadata resolution for prefixes by slawekjaranowski · Pull Request #1830 · apache/maven-resolver (original) (raw)

That is clearly a bug then. In 90% of cases, when plugin operates on received repositories, Maven already primed them. But, if plugin creates new RemoteRepository instances, that is a bug.

Moreover, the method newResolutionRepositories is not and cannot be idempotent, hence, we (resolver) cannot just invoke that method over and over again, as it will create issues with setups like mirrorOf: *.