Package org.mule.maven.client.internal
Class RemoteRepositoriesMerger
java.lang.Object
org.mule.maven.client.internal.RemoteRepositoriesMerger
Utility class that merges a list of
Remote Repostiories by identifier.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RemoteRepositoriesMerger
public RemoteRepositoriesMerger()
-
-
Method Details
-
merge
public List<org.eclipse.aether.repository.RemoteRepository> merge(List<org.eclipse.aether.repository.RemoteRepository> dominant, List<org.eclipse.aether.repository.RemoteRepository> recessive) Merges the two lists of remote repositories by their IDs. Considering the fist to be the dominant list, therefore starting by that one and adding missing repositories from therecessivelist.- Parameters:
dominant- original list ofrepositoriesthat should have authentication already set.recessive- list ofrepositoriesto be added if there is not already one in dominant list for the same ID.- Returns:
- merged
ListofRemoteRepository.
-