Package org.apache.maven
Class RepositoryUtils
- java.lang.Object
-
- org.apache.maven.RepositoryUtils
-
public class RepositoryUtils extends Object
Warning: This is an internal utility class that is only public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without prior notice.- Author:
- Benjamin Bentmann
-
-
Constructor Summary
Constructors Constructor Description RepositoryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getLayout(ArtifactRepository repo)
static org.eclipse.aether.repository.WorkspaceRepository
getWorkspace(org.eclipse.aether.RepositorySystemSession session)
static org.eclipse.aether.artifact.ArtifactType
newArtifactType(String id, ArtifactHandler handler)
static org.eclipse.aether.artifact.ArtifactTypeRegistry
newArtifactTypeRegistry(ArtifactHandlerManager handlerManager)
static ArtifactHandler
newHandler(org.eclipse.aether.artifact.Artifact artifact)
static boolean
repositoriesEquals(List<org.eclipse.aether.repository.RemoteRepository> r1, List<org.eclipse.aether.repository.RemoteRepository> r2)
static int
repositoriesHashCode(List<org.eclipse.aether.repository.RemoteRepository> repositories)
static org.eclipse.aether.artifact.Artifact
toArtifact(Artifact artifact)
static Artifact
toArtifact(org.eclipse.aether.artifact.Artifact artifact)
static Collection<org.eclipse.aether.artifact.Artifact>
toArtifacts(Collection<Artifact> artifactsToConvert)
static void
toArtifacts(Collection<Artifact> artifacts, Collection<? extends org.eclipse.aether.graph.DependencyNode> nodes, List<String> trail, org.eclipse.aether.graph.DependencyFilter filter)
static org.eclipse.aether.graph.Dependency
toDependency(Artifact artifact, Collection<Exclusion> exclusions)
static org.eclipse.aether.graph.Dependency
toDependency(Dependency dependency, org.eclipse.aether.artifact.ArtifactTypeRegistry stereotypes)
static org.eclipse.aether.repository.RemoteRepository
toRepo(ArtifactRepository repo)
static List<org.eclipse.aether.repository.RemoteRepository>
toRepos(List<ArtifactRepository> repos)
-
-
-
Method Detail
-
toArtifact
public static Artifact toArtifact(org.eclipse.aether.artifact.Artifact artifact)
-
toArtifacts
public static void toArtifacts(Collection<Artifact> artifacts, Collection<? extends org.eclipse.aether.graph.DependencyNode> nodes, List<String> trail, org.eclipse.aether.graph.DependencyFilter filter)
-
toArtifact
public static org.eclipse.aether.artifact.Artifact toArtifact(Artifact artifact)
-
toDependency
public static org.eclipse.aether.graph.Dependency toDependency(Artifact artifact, Collection<Exclusion> exclusions)
-
toRepos
public static List<org.eclipse.aether.repository.RemoteRepository> toRepos(List<ArtifactRepository> repos)
-
toRepo
public static org.eclipse.aether.repository.RemoteRepository toRepo(ArtifactRepository repo)
-
getLayout
public static String getLayout(ArtifactRepository repo)
-
newHandler
public static ArtifactHandler newHandler(org.eclipse.aether.artifact.Artifact artifact)
-
newArtifactType
public static org.eclipse.aether.artifact.ArtifactType newArtifactType(String id, ArtifactHandler handler)
-
toDependency
public static org.eclipse.aether.graph.Dependency toDependency(Dependency dependency, org.eclipse.aether.artifact.ArtifactTypeRegistry stereotypes)
-
newArtifactTypeRegistry
public static org.eclipse.aether.artifact.ArtifactTypeRegistry newArtifactTypeRegistry(ArtifactHandlerManager handlerManager)
-
toArtifacts
public static Collection<org.eclipse.aether.artifact.Artifact> toArtifacts(Collection<Artifact> artifactsToConvert)
-
getWorkspace
public static org.eclipse.aether.repository.WorkspaceRepository getWorkspace(org.eclipse.aether.RepositorySystemSession session)
-
repositoriesEquals
public static boolean repositoriesEquals(List<org.eclipse.aether.repository.RemoteRepository> r1, List<org.eclipse.aether.repository.RemoteRepository> r2)
-
repositoriesHashCode
public static int repositoriesHashCode(List<org.eclipse.aether.repository.RemoteRepository> repositories)
-
-