@Component(role=MavenRepositorySystem.class, hint="default") public class MavenRepositorySystem extends Object
Constructor and Description |
---|
MavenRepositorySystem() |
public Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type)
public Artifact createProjectArtifact(String groupId, String artifactId, String metaVersionId)
public Artifact createDependencyArtifact(Dependency d)
public Artifact createExtensionArtifact(String groupId, String artifactId, String version)
public Artifact createParentArtifact(String groupId, String artifactId, String version)
public void injectMirror(List<ArtifactRepository> repositories, List<Mirror> mirrors)
public void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
public void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
public void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
public static Repository fromSettingsRepository(Repository settingsRepository)
public static RepositoryPolicy fromSettingsRepositoryPolicy(RepositoryPolicy settingsRepositoryPolicy)
public static ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException
InvalidRepositoryException
public static ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException
InvalidRepositoryException
public static ArtifactRepositoryPolicy buildArtifactRepositoryPolicy(RepositoryPolicy policy)
public ArtifactRepository createArtifactRepository(String id, String url, String layoutId, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) throws Exception
Exception
public static ArtifactRepository createArtifactRepository(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
public ArtifactRepository createDefaultRemoteRepository(MavenExecutionRequest request) throws Exception
Exception
public ArtifactRepository createRepository(String url, String repositoryId, boolean releases, String releaseUpdates, boolean snapshots, String snapshotUpdates, String checksumPolicy) throws Exception
Exception
public Set<String> getRepoIds(List<ArtifactRepository> repositories)
public List<ArtifactRepository> getEffectiveRepositories(List<ArtifactRepository> repositories)
repositories
- public ArtifactRepository createLocalRepository(MavenExecutionRequest request, File localRepository) throws Exception
Exception
public static Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors)
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.