Package org.apache.maven
Class RepositoryUtils
- java.lang.Object
-
- org.apache.maven.RepositoryUtils
-
public class RepositoryUtils extends java.lang.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RepositoryUtils.MavenArtifactTypeRegistry
-
Constructor Summary
Constructors Constructor Description RepositoryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getLayout(ArtifactRepository repo)
static org.eclipse.aether.repository.WorkspaceRepository
getWorkspace(org.eclipse.aether.RepositorySystemSession session)
static org.eclipse.aether.artifact.ArtifactType
newArtifactType(java.lang.String id, ArtifactHandler handler)
static org.eclipse.aether.artifact.ArtifactTypeRegistry
newArtifactTypeRegistry(ArtifactHandlerManager handlerManager)
static ArtifactHandler
newHandler(org.eclipse.aether.artifact.Artifact artifact)
private static java.lang.String
nullify(java.lang.String string)
private static boolean
policyEquals(org.eclipse.aether.repository.RepositoryPolicy p1, org.eclipse.aether.repository.RepositoryPolicy p2)
static boolean
repositoriesEquals(java.util.List<org.eclipse.aether.repository.RemoteRepository> r1, java.util.List<org.eclipse.aether.repository.RemoteRepository> r2)
static int
repositoriesHashCode(java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories)
private static boolean
repositoryEquals(org.eclipse.aether.repository.RemoteRepository r1, org.eclipse.aether.repository.RemoteRepository r2)
private static int
repositoryHashCode(org.eclipse.aether.repository.RemoteRepository repository)
static org.eclipse.aether.artifact.Artifact
toArtifact(Artifact artifact)
static Artifact
toArtifact(org.eclipse.aether.artifact.Artifact artifact)
private static Artifact
toArtifact(org.eclipse.aether.graph.Dependency dependency)
static java.util.Collection<org.eclipse.aether.artifact.Artifact>
toArtifacts(java.util.Collection<Artifact> artifactsToConvert)
static void
toArtifacts(java.util.Collection<Artifact> artifacts, java.util.Collection<? extends org.eclipse.aether.graph.DependencyNode> nodes, java.util.List<java.lang.String> trail, org.eclipse.aether.graph.DependencyFilter filter)
private static org.eclipse.aether.repository.Authentication
toAuthentication(Authentication auth)
static org.eclipse.aether.graph.Dependency
toDependency(Artifact artifact, java.util.Collection<Exclusion> exclusions)
static org.eclipse.aether.graph.Dependency
toDependency(Dependency dependency, org.eclipse.aether.artifact.ArtifactTypeRegistry stereotypes)
private static org.eclipse.aether.graph.Exclusion
toExclusion(Exclusion exclusion)
private static org.eclipse.aether.repository.RepositoryPolicy
toPolicy(ArtifactRepositoryPolicy policy)
private static org.eclipse.aether.repository.Proxy
toProxy(Proxy proxy)
static org.eclipse.aether.repository.RemoteRepository
toRepo(ArtifactRepository repo)
static java.util.List<org.eclipse.aether.repository.RemoteRepository>
toRepos(java.util.List<ArtifactRepository> repos)
-
-
-
Method Detail
-
nullify
private static java.lang.String nullify(java.lang.String string)
-
toArtifact
private static Artifact toArtifact(org.eclipse.aether.graph.Dependency dependency)
-
toArtifact
public static Artifact toArtifact(org.eclipse.aether.artifact.Artifact artifact)
-
toArtifacts
public static void toArtifacts(java.util.Collection<Artifact> artifacts, java.util.Collection<? extends org.eclipse.aether.graph.DependencyNode> nodes, java.util.List<java.lang.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, java.util.Collection<Exclusion> exclusions)
-
toRepos
public static java.util.List<org.eclipse.aether.repository.RemoteRepository> toRepos(java.util.List<ArtifactRepository> repos)
-
toRepo
public static org.eclipse.aether.repository.RemoteRepository toRepo(ArtifactRepository repo)
-
getLayout
public static java.lang.String getLayout(ArtifactRepository repo)
-
toPolicy
private static org.eclipse.aether.repository.RepositoryPolicy toPolicy(ArtifactRepositoryPolicy policy)
-
toAuthentication
private static org.eclipse.aether.repository.Authentication toAuthentication(Authentication auth)
-
toProxy
private static org.eclipse.aether.repository.Proxy toProxy(Proxy proxy)
-
newHandler
public static ArtifactHandler newHandler(org.eclipse.aether.artifact.Artifact artifact)
-
newArtifactType
public static org.eclipse.aether.artifact.ArtifactType newArtifactType(java.lang.String id, ArtifactHandler handler)
-
toDependency
public static org.eclipse.aether.graph.Dependency toDependency(Dependency dependency, org.eclipse.aether.artifact.ArtifactTypeRegistry stereotypes)
-
toExclusion
private static org.eclipse.aether.graph.Exclusion toExclusion(Exclusion exclusion)
-
newArtifactTypeRegistry
public static org.eclipse.aether.artifact.ArtifactTypeRegistry newArtifactTypeRegistry(ArtifactHandlerManager handlerManager)
-
toArtifacts
public static java.util.Collection<org.eclipse.aether.artifact.Artifact> toArtifacts(java.util.Collection<Artifact> artifactsToConvert)
-
getWorkspace
public static org.eclipse.aether.repository.WorkspaceRepository getWorkspace(org.eclipse.aether.RepositorySystemSession session)
-
repositoriesEquals
public static boolean repositoriesEquals(java.util.List<org.eclipse.aether.repository.RemoteRepository> r1, java.util.List<org.eclipse.aether.repository.RemoteRepository> r2)
-
repositoriesHashCode
public static int repositoriesHashCode(java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories)
-
repositoryHashCode
private static int repositoryHashCode(org.eclipse.aether.repository.RemoteRepository repository)
-
policyEquals
private static boolean policyEquals(org.eclipse.aether.repository.RepositoryPolicy p1, org.eclipse.aether.repository.RepositoryPolicy p2)
-
repositoryEquals
private static boolean repositoryEquals(org.eclipse.aether.repository.RemoteRepository r1, org.eclipse.aether.repository.RemoteRepository r2)
-
-