Class LegacyRepositorySystem
java.lang.Object
org.apache.maven.repository.legacy.LegacyRepositorySystem
- All Implemented Interfaces:
RepositorySystem
@Named("default")
@Singleton
@Deprecated
public class LegacyRepositorySystem
extends Object
implements RepositorySystem
Deprecated.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.repository.ArtifactRepositorybuildArtifactRepository(org.apache.maven.model.Repository repo) Deprecated.org.apache.maven.artifact.repository.ArtifactRepositoryPolicybuildArtifactRepositoryPolicy(org.apache.maven.model.RepositoryPolicy policy) Deprecated.org.apache.maven.artifact.ArtifactcreateArtifact(String groupId, String artifactId, String version, String packaging) Deprecated.org.apache.maven.artifact.ArtifactDeprecated.org.apache.maven.artifact.repository.ArtifactRepositorycreateArtifactRepository(String repositoryId, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout repositoryLayout, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy snapshots, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy releases) Deprecated.org.apache.maven.artifact.ArtifactcreateArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier) Deprecated.org.apache.maven.artifact.repository.ArtifactRepositoryDeprecated.org.apache.maven.artifact.repository.ArtifactRepositoryDeprecated.org.apache.maven.artifact.ArtifactcreateDependencyArtifact(org.apache.maven.model.Dependency d) Deprecated.org.apache.maven.artifact.ArtifactcreateExtensionArtifact(String groupId, String artifactId, String version) Deprecated.org.apache.maven.artifact.repository.ArtifactRepositorycreateLocalRepository(File localRepository) Deprecated.org.apache.maven.artifact.repository.ArtifactRepositorycreateLocalRepository(String url, String repositoryId) Deprecated.org.apache.maven.artifact.ArtifactcreateParentArtifact(String groupId, String artifactId, String version) Deprecated.org.apache.maven.artifact.ArtifactcreatePluginArtifact(org.apache.maven.model.Plugin plugin) Deprecated.org.apache.maven.artifact.ArtifactcreateProjectArtifact(String groupId, String artifactId, String metaVersionId) Deprecated.List<org.apache.maven.artifact.repository.ArtifactRepository> getEffectiveRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) Deprecated.Calculates the effective repositories for the given input repositories which are assumed to be already mirrored (if applicable).org.apache.maven.settings.MirrorgetMirror(org.apache.maven.artifact.repository.ArtifactRepository repository, List<org.apache.maven.settings.Mirror> mirrors) Deprecated.Determines the mirror for the specified repository.voidinjectAuthentication(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Server> servers) Deprecated.Injects the authentication information into the specified repositories.voidinjectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) Deprecated.voidinjectMirror(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Mirror> mirrors) Deprecated.Injects the mirroring information into the specified repositories.voidinjectMirror(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) Deprecated.voidinjectProxy(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Proxy> proxies) Deprecated.Injects the proxy information into the specified repositories.voidinjectProxy(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) Deprecated.voidpublish(org.apache.maven.artifact.repository.ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) Deprecated.resolve(ArtifactResolutionRequest request) Deprecated.voidretrieve(org.apache.maven.artifact.repository.ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) Deprecated.
-
Constructor Details
-
LegacyRepositorySystem
public LegacyRepositorySystem()Deprecated.
-
-
Method Details
-
createArtifact
public org.apache.maven.artifact.Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type) Deprecated.- Specified by:
createArtifactin interfaceRepositorySystem
-
createArtifact
public org.apache.maven.artifact.Artifact createArtifact(String groupId, String artifactId, String version, String packaging) Deprecated.- Specified by:
createArtifactin interfaceRepositorySystem
-
createArtifactWithClassifier
public org.apache.maven.artifact.Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier) Deprecated.- Specified by:
createArtifactWithClassifierin interfaceRepositorySystem
-
createProjectArtifact
public org.apache.maven.artifact.Artifact createProjectArtifact(String groupId, String artifactId, String metaVersionId) Deprecated.- Specified by:
createProjectArtifactin interfaceRepositorySystem
-
createDependencyArtifact
public org.apache.maven.artifact.Artifact createDependencyArtifact(org.apache.maven.model.Dependency d) Deprecated.- Specified by:
createDependencyArtifactin interfaceRepositorySystem
-
createExtensionArtifact
public org.apache.maven.artifact.Artifact createExtensionArtifact(String groupId, String artifactId, String version) Deprecated. -
createParentArtifact
public org.apache.maven.artifact.Artifact createParentArtifact(String groupId, String artifactId, String version) Deprecated. -
createPluginArtifact
public org.apache.maven.artifact.Artifact createPluginArtifact(org.apache.maven.model.Plugin plugin) Deprecated.- Specified by:
createPluginArtifactin interfaceRepositorySystem
-
buildArtifactRepositoryPolicy
public org.apache.maven.artifact.repository.ArtifactRepositoryPolicy buildArtifactRepositoryPolicy(org.apache.maven.model.RepositoryPolicy policy) Deprecated. -
createDefaultLocalRepository
public org.apache.maven.artifact.repository.ArtifactRepository createDefaultLocalRepository() throws org.apache.maven.artifact.InvalidRepositoryExceptionDeprecated.- Specified by:
createDefaultLocalRepositoryin interfaceRepositorySystem- Throws:
org.apache.maven.artifact.InvalidRepositoryException
-
createLocalRepository
public org.apache.maven.artifact.repository.ArtifactRepository createLocalRepository(File localRepository) throws org.apache.maven.artifact.InvalidRepositoryException Deprecated.- Specified by:
createLocalRepositoryin interfaceRepositorySystem- Throws:
org.apache.maven.artifact.InvalidRepositoryException
-
createDefaultRemoteRepository
public org.apache.maven.artifact.repository.ArtifactRepository createDefaultRemoteRepository() throws org.apache.maven.artifact.InvalidRepositoryExceptionDeprecated.- Specified by:
createDefaultRemoteRepositoryin interfaceRepositorySystem- Throws:
org.apache.maven.artifact.InvalidRepositoryException
-
createLocalRepository
public org.apache.maven.artifact.repository.ArtifactRepository createLocalRepository(String url, String repositoryId) throws IOException Deprecated.- Throws:
IOException
-
resolve
Deprecated.- Specified by:
resolvein interfaceRepositorySystem
-
getEffectiveRepositories
public List<org.apache.maven.artifact.repository.ArtifactRepository> getEffectiveRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) Deprecated.Description copied from interface:RepositorySystemCalculates the effective repositories for the given input repositories which are assumed to be already mirrored (if applicable). This process will essentially remove duplicate repositories by merging them into one equivalent repository. It is worth to point out that merging does not simply choose one of the input repositories and discards the others but actually combines their possibly different policies.- Specified by:
getEffectiveRepositoriesin interfaceRepositorySystem- Parameters:
repositories- The original repositories, may benull.- Returns:
- The effective repositories or
nullif the input wasnull.
-
getMirror
public org.apache.maven.settings.Mirror getMirror(org.apache.maven.artifact.repository.ArtifactRepository repository, List<org.apache.maven.settings.Mirror> mirrors) Deprecated.Description copied from interface:RepositorySystemDetermines the mirror for the specified repository.- Specified by:
getMirrorin interfaceRepositorySystem- Parameters:
repository- The repository to determine the mirror for, must not benull.mirrors- The available mirrors, may benull.- Returns:
- The mirror specification for the repository or
nullif no mirror matched.
-
injectMirror
public void injectMirror(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Mirror> mirrors) Deprecated.Description copied from interface:RepositorySystemInjects the mirroring information into the specified repositories. For each repository that is matched by a mirror, its URL and ID will be updated to match the values from the mirror specification. Repositories without a matching mirror will pass through unchanged. Note: This method must be called beforeRepositorySystem.injectAuthentication(List, List)or the repositories will end up with the wrong credentials.- Specified by:
injectMirrorin interfaceRepositorySystem- Parameters:
repositories- The repositories into which to inject the mirror information, may benull.mirrors- The available mirrors, may benull.
-
injectMirror
public void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) Deprecated.- Specified by:
injectMirrorin interfaceRepositorySystem
-
injectAuthentication
public void injectAuthentication(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Server> servers) Deprecated.Description copied from interface:RepositorySystemInjects the authentication information into the specified repositories. For each repository that is matched by a server, its credentials will be updated to match the values from the server specification. Repositories without a matching server will have their credentials cleared. Note: This method must be called afterRepositorySystem.injectMirror(List, List)or the repositories will end up with the wrong credentials.- Specified by:
injectAuthenticationin interfaceRepositorySystem- Parameters:
repositories- The repositories into which to inject the authentication information, may benull.servers- The available servers, may benull.
-
injectAuthentication
public void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) Deprecated.- Specified by:
injectAuthenticationin interfaceRepositorySystem
-
injectProxy
public void injectProxy(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Proxy> proxies) Deprecated.Description copied from interface:RepositorySystemInjects the proxy information into the specified repositories. For each repository that is matched by a proxy, its proxy data will be set accordingly. Repositories without a matching proxy will have their proxy cleared. Note: This method must be called afterRepositorySystem.injectMirror(List, List)or the repositories will end up with the wrong proxies.- Specified by:
injectProxyin interfaceRepositorySystem- Parameters:
repositories- The repositories into which to inject the proxy information, may benull.proxies- The available proxies, may benull.
-
injectProxy
public void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories) Deprecated.- Specified by:
injectProxyin interfaceRepositorySystem
-
retrieve
public void retrieve(org.apache.maven.artifact.repository.ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException Deprecated.- Specified by:
retrievein interfaceRepositorySystem- Throws:
ArtifactTransferFailedExceptionArtifactDoesNotExistException
-
publish
public void publish(org.apache.maven.artifact.repository.ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException Deprecated.- Specified by:
publishin interfaceRepositorySystem- Throws:
ArtifactTransferFailedException
-
buildArtifactRepository
public org.apache.maven.artifact.repository.ArtifactRepository buildArtifactRepository(org.apache.maven.model.Repository repo) throws org.apache.maven.artifact.InvalidRepositoryException Deprecated.- Specified by:
buildArtifactRepositoryin interfaceRepositorySystem- Throws:
org.apache.maven.artifact.InvalidRepositoryException
-
createArtifactRepository
public org.apache.maven.artifact.repository.ArtifactRepository createArtifactRepository(String repositoryId, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout repositoryLayout, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy snapshots, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy releases) Deprecated.- Specified by:
createArtifactRepositoryin interfaceRepositorySystem
-