@Component(role=org.apache.maven.repository.RepositorySystem.class, hint="default") public class LegacyRepositorySystem extends Object implements RepositorySystem
DEFAULT_LOCAL_REPO_ID, DEFAULT_REMOTE_REPO_ID, DEFAULT_REMOTE_REPO_URL, defaultUserLocalRepository, userHome, userMavenConfigurationHome
Constructor and Description |
---|
LegacyRepositorySystem() |
public Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type)
createArtifact
in interface RepositorySystem
public Artifact createArtifact(String groupId, String artifactId, String version, String packaging)
createArtifact
in interface RepositorySystem
public Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier)
createArtifactWithClassifier
in interface RepositorySystem
public Artifact createProjectArtifact(String groupId, String artifactId, String metaVersionId)
createProjectArtifact
in interface RepositorySystem
public Artifact createDependencyArtifact(Dependency d)
createDependencyArtifact
in interface RepositorySystem
public Artifact createExtensionArtifact(String groupId, String artifactId, String version)
public Artifact createParentArtifact(String groupId, String artifactId, String version)
public Artifact createPluginArtifact(Plugin plugin)
createPluginArtifact
in interface RepositorySystem
public ArtifactRepositoryPolicy buildArtifactRepositoryPolicy(RepositoryPolicy policy)
public ArtifactRepository createDefaultLocalRepository() throws InvalidRepositoryException
createDefaultLocalRepository
in interface RepositorySystem
InvalidRepositoryException
public ArtifactRepository createLocalRepository(File localRepository) throws InvalidRepositoryException
createLocalRepository
in interface RepositorySystem
InvalidRepositoryException
public ArtifactRepository createDefaultRemoteRepository() throws InvalidRepositoryException
createDefaultRemoteRepository
in interface RepositorySystem
InvalidRepositoryException
public ArtifactRepository createLocalRepository(String url, String repositoryId) throws IOException
IOException
public ArtifactResolutionResult resolve(ArtifactResolutionRequest request)
resolve
in interface RepositorySystem
public List<ArtifactRepository> getEffectiveRepositories(List<ArtifactRepository> repositories)
getEffectiveRepositories
in interface RepositorySystem
public Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors)
getMirror
in interface RepositorySystem
public void injectMirror(List<ArtifactRepository> repositories, List<Mirror> mirrors)
injectMirror
in interface RepositorySystem
public void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
injectMirror
in interface RepositorySystem
public void injectAuthentication(List<ArtifactRepository> repositories, List<Server> servers)
injectAuthentication
in interface RepositorySystem
public void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
injectAuthentication
in interface RepositorySystem
public void injectProxy(List<ArtifactRepository> repositories, List<Proxy> proxies)
injectProxy
in interface RepositorySystem
public void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
injectProxy
in interface RepositorySystem
public void retrieve(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException
retrieve
in interface RepositorySystem
ArtifactTransferFailedException
ArtifactDoesNotExistException
public void publish(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException
publish
in interface RepositorySystem
ArtifactTransferFailedException
public ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException
buildArtifactRepository
in interface RepositorySystem
InvalidRepositoryException
public ArtifactRepository createArtifactRepository(String repositoryId, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
createArtifactRepository
in interface RepositorySystem
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.