Class LegacyRepositorySystem
java.lang.Object
org.apache.maven.repository.legacy.LegacyRepositorySystem
- All Implemented Interfaces:
RepositorySystem
@Component(role=org.apache.maven.repository.RepositorySystem.class,
hint="default")
public class LegacyRepositorySystem
extends Object
implements RepositorySystem
- Author:
- Jason van Zyl
-
Field Summary
Fields inherited from interface org.apache.maven.repository.RepositorySystem
DEFAULT_LOCAL_REPO_ID, DEFAULT_REMOTE_REPO_ID, DEFAULT_REMOTE_REPO_URL, defaultUserLocalRepository, userHome, userMavenConfigurationHome
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateArtifact
(String groupId, String artifactId, String version, String packaging) createArtifactRepository
(String repositoryId, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) createArtifactWithClassifier
(String groupId, String artifactId, String version, String type, String classifier) createExtensionArtifact
(String groupId, String artifactId, String version) createLocalRepository
(File localRepository) createLocalRepository
(String url, String repositoryId) createParentArtifact
(String groupId, String artifactId, String version) createPluginArtifact
(Plugin plugin) createProjectArtifact
(String groupId, String artifactId, String metaVersionId) getEffectiveRepositories
(List<ArtifactRepository> repositories) getMirror
(ArtifactRepository repository, List<Mirror> mirrors) void
injectAuthentication
(List<ArtifactRepository> repositories, List<Server> servers) void
injectAuthentication
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) void
injectMirror
(List<ArtifactRepository> repositories, List<Mirror> mirrors) void
injectMirror
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) void
injectProxy
(List<ArtifactRepository> repositories, List<Proxy> proxies) void
injectProxy
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) void
publish
(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) resolve
(ArtifactResolutionRequest request) void
retrieve
(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener)
-
Constructor Details
-
LegacyRepositorySystem
public LegacyRepositorySystem()
-
-
Method Details
-
createArtifact
public Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type) - Specified by:
createArtifact
in interfaceRepositorySystem
-
createArtifact
- Specified by:
createArtifact
in interfaceRepositorySystem
-
createArtifactWithClassifier
public Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier) - Specified by:
createArtifactWithClassifier
in interfaceRepositorySystem
-
createProjectArtifact
- Specified by:
createProjectArtifact
in interfaceRepositorySystem
-
createDependencyArtifact
- Specified by:
createDependencyArtifact
in interfaceRepositorySystem
-
createExtensionArtifact
-
createParentArtifact
-
createPluginArtifact
- Specified by:
createPluginArtifact
in interfaceRepositorySystem
-
buildArtifactRepositoryPolicy
-
createDefaultLocalRepository
- Specified by:
createDefaultLocalRepository
in interfaceRepositorySystem
- Throws:
InvalidRepositoryException
-
createLocalRepository
public ArtifactRepository createLocalRepository(File localRepository) throws InvalidRepositoryException - Specified by:
createLocalRepository
in interfaceRepositorySystem
- Throws:
InvalidRepositoryException
-
createDefaultRemoteRepository
- Specified by:
createDefaultRemoteRepository
in interfaceRepositorySystem
- Throws:
InvalidRepositoryException
-
createLocalRepository
- Throws:
IOException
-
resolve
- Specified by:
resolve
in interfaceRepositorySystem
-
getEffectiveRepositories
- Specified by:
getEffectiveRepositories
in interfaceRepositorySystem
-
getMirror
- Specified by:
getMirror
in interfaceRepositorySystem
-
injectMirror
- Specified by:
injectMirror
in interfaceRepositorySystem
-
injectMirror
public void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) - Specified by:
injectMirror
in interfaceRepositorySystem
-
injectAuthentication
- Specified by:
injectAuthentication
in interfaceRepositorySystem
-
injectAuthentication
public void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) - Specified by:
injectAuthentication
in interfaceRepositorySystem
-
injectProxy
- Specified by:
injectProxy
in interfaceRepositorySystem
-
injectProxy
public void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) - Specified by:
injectProxy
in interfaceRepositorySystem
-
retrieve
public void retrieve(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException - Specified by:
retrieve
in interfaceRepositorySystem
- Throws:
ArtifactTransferFailedException
ArtifactDoesNotExistException
-
publish
public void publish(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException - Specified by:
publish
in interfaceRepositorySystem
- Throws:
ArtifactTransferFailedException
-
buildArtifactRepository
public ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException - Specified by:
buildArtifactRepository
in interfaceRepositorySystem
- Throws:
InvalidRepositoryException
-
createArtifactRepository
public ArtifactRepository createArtifactRepository(String repositoryId, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) - Specified by:
createArtifactRepository
in interfaceRepositorySystem
-