Class MavenArtifactRepositoryManager

  • All Implemented Interfaces:
    org.jboss.galleon.repo.RepositoryArtifactInstaller, org.jboss.galleon.repo.RepositoryArtifactResolver, org.jboss.galleon.universe.maven.repo.MavenRepoManager

    public class MavenArtifactRepositoryManager
    extends AbstractMavenArtifactRepositoryManager
    Author:
    Emmanuel Hugonnet (c) 2017 Red Hat, inc., Alexey Loubyansky
    • Constructor Detail

      • MavenArtifactRepositoryManager

        public MavenArtifactRepositoryManager​(org.eclipse.aether.RepositorySystem repoSystem,
                                              org.eclipse.aether.RepositorySystemSession repoSession)
        Creates an instance that only will resolve artifacts using the Maven local repository.
        Parameters:
        repoSystem - The repository system instance, must not be null.
        repoSession - The repository session, must not be null.
      • MavenArtifactRepositoryManager

        public MavenArtifactRepositoryManager​(org.eclipse.aether.RepositorySystem repoSystem,
                                              org.eclipse.aether.RepositorySystemSession repoSession,
                                              java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories)
        Creates an instance that will use a list of remote repositories where to find an artifact if the artifact is not in the local Maven repository.
        Parameters:
        repoSystem - The repository system instance, must not be null.
        repoSession - The repository session, must not be null.
        repositories - The list of remote repositories where to find the artifact if it is not in the local Maven repository.
    • Method Detail

      • getSession

        protected org.eclipse.aether.RepositorySystemSession getSession()
                                                                 throws org.jboss.galleon.universe.maven.MavenUniverseException
        Specified by:
        getSession in class AbstractMavenArtifactRepositoryManager
        Throws:
        org.jboss.galleon.universe.maven.MavenUniverseException
      • getRepositories

        protected java.util.List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
                                                                                          throws org.jboss.galleon.universe.maven.MavenUniverseException
        Specified by:
        getRepositories in class AbstractMavenArtifactRepositoryManager
        Throws:
        org.jboss.galleon.universe.maven.MavenUniverseException