Class RemoteRepositoryModelResolver

java.lang.Object
org.mule.maven.client.internal.RemoteRepositoryModelResolver

public class RemoteRepositoryModelResolver extends Object
Resolver the list of RemoteRepository to be used by RepositorySystem when resolving dependencies taking into account Maven's logic to order repositories.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoteRepositoryModelResolver(org.eclipse.aether.impl.RemoteRepositoryManager remoteRepositoryManager, org.eclipse.aether.RepositorySystemSession repositorySystemSession)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.aether.repository.RemoteRepository>
    resolveRepositories(List<org.eclipse.aether.repository.RemoteRepository> settingsRepositories, List<org.eclipse.aether.repository.RemoteRepository> modelRepositories)
    Uses Maven's logic to sort the remote repositories in the correct order and optionally applies mirror, proxy and authentication settings from the session.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RemoteRepositoryModelResolver

      public RemoteRepositoryModelResolver(org.eclipse.aether.impl.RemoteRepositoryManager remoteRepositoryManager, org.eclipse.aether.RepositorySystemSession repositorySystemSession)
  • Method Details

    • resolveRepositories

      public List<org.eclipse.aether.repository.RemoteRepository> resolveRepositories(List<org.eclipse.aether.repository.RemoteRepository> settingsRepositories, List<org.eclipse.aether.repository.RemoteRepository> modelRepositories)
      Uses Maven's logic to sort the remote repositories in the correct order and optionally applies mirror, proxy and authentication settings from the session.
      Parameters:
      settingsRepositories - original list of repositories from settings.xml or MavenConfiguration, these repositories should already have applied mirror, proxy and authentication.
      modelRepositories - list of repositories to be added if there is not already one in dominant list for the same ID.
      Returns:
      List of RemoteRepository in the same order as Maven does when resolving dependencies.