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
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.createArtifact
(String groupId, String artifactId, String version, String packaging) Deprecated.Deprecated.createArtifactRepository
(String repositoryId, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Deprecated.createArtifactWithClassifier
(String groupId, String artifactId, String version, String type, String classifier) Deprecated.Deprecated.Deprecated.Deprecated.createExtensionArtifact
(String groupId, String artifactId, String version) Deprecated.createLocalRepository
(File localRepository) Deprecated.createLocalRepository
(String url, String repositoryId) Deprecated.createParentArtifact
(String groupId, String artifactId, String version) Deprecated.createPluginArtifact
(Plugin plugin) Deprecated.createProjectArtifact
(String groupId, String artifactId, String metaVersionId) Deprecated.getEffectiveRepositories
(List<ArtifactRepository> repositories) Deprecated.Calculates the effective repositories for the given input repositories which are assumed to be already mirrored (if applicable).getMirror
(ArtifactRepository repository, List<Mirror> mirrors) Deprecated.Determines the mirror for the specified repository.void
injectAuthentication
(List<ArtifactRepository> repositories, List<Server> servers) Deprecated.Injects the authentication information into the specified repositories.void
injectAuthentication
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.void
injectMirror
(List<ArtifactRepository> repositories, List<Mirror> mirrors) Deprecated.Injects the mirroring information into the specified repositories.void
injectMirror
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.void
injectProxy
(List<ArtifactRepository> repositories, List<Proxy> proxies) Deprecated.Injects the proxy information into the specified repositories.void
injectProxy
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.void
publish
(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) Deprecated.resolve
(ArtifactResolutionRequest request) Deprecated.void
retrieve
(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) Deprecated.
-
Constructor Details
-
LegacyRepositorySystem
public LegacyRepositorySystem()Deprecated.
-
-
Method Details
-
createArtifact
public Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type) Deprecated.- Specified by:
createArtifact
in interfaceRepositorySystem
-
createArtifact
Deprecated.- Specified by:
createArtifact
in interfaceRepositorySystem
-
createArtifactWithClassifier
public Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier) Deprecated.- Specified by:
createArtifactWithClassifier
in interfaceRepositorySystem
-
createProjectArtifact
Deprecated.- Specified by:
createProjectArtifact
in interfaceRepositorySystem
-
createDependencyArtifact
Deprecated.- Specified by:
createDependencyArtifact
in interfaceRepositorySystem
-
createExtensionArtifact
Deprecated. -
createParentArtifact
Deprecated. -
createPluginArtifact
Deprecated.- Specified by:
createPluginArtifact
in interfaceRepositorySystem
-
buildArtifactRepositoryPolicy
Deprecated. -
createDefaultLocalRepository
Deprecated.- Specified by:
createDefaultLocalRepository
in interfaceRepositorySystem
- Throws:
InvalidRepositoryException
-
createLocalRepository
public ArtifactRepository createLocalRepository(File localRepository) throws InvalidRepositoryException Deprecated.- Specified by:
createLocalRepository
in interfaceRepositorySystem
- Throws:
InvalidRepositoryException
-
createDefaultRemoteRepository
Deprecated.- Specified by:
createDefaultRemoteRepository
in interfaceRepositorySystem
- Throws:
InvalidRepositoryException
-
createLocalRepository
Deprecated.- Throws:
IOException
-
resolve
Deprecated.- Specified by:
resolve
in interfaceRepositorySystem
-
getEffectiveRepositories
Deprecated.Description copied from interface:RepositorySystem
Calculates 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:
getEffectiveRepositories
in interfaceRepositorySystem
- Parameters:
repositories
- The original repositories, may benull
.- Returns:
- The effective repositories or
null
if the input wasnull
.
-
getMirror
Deprecated.Description copied from interface:RepositorySystem
Determines the mirror for the specified repository.- Specified by:
getMirror
in 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
null
if no mirror matched.
-
injectMirror
Deprecated.Description copied from interface:RepositorySystem
Injects 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:
injectMirror
in 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<ArtifactRepository> repositories) Deprecated.- Specified by:
injectMirror
in interfaceRepositorySystem
-
injectAuthentication
Deprecated.Description copied from interface:RepositorySystem
Injects 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:
injectAuthentication
in 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<ArtifactRepository> repositories) Deprecated.- Specified by:
injectAuthentication
in interfaceRepositorySystem
-
injectProxy
Deprecated.Description copied from interface:RepositorySystem
Injects 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:
injectProxy
in 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<ArtifactRepository> repositories) Deprecated.- Specified by:
injectProxy
in interfaceRepositorySystem
-
retrieve
public void retrieve(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException Deprecated.- Specified by:
retrieve
in interfaceRepositorySystem
- Throws:
ArtifactTransferFailedException
ArtifactDoesNotExistException
-
publish
public void publish(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException Deprecated.- Specified by:
publish
in interfaceRepositorySystem
- Throws:
ArtifactTransferFailedException
-
buildArtifactRepository
public ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException Deprecated.- Specified by:
buildArtifactRepository
in interfaceRepositorySystem
- Throws:
InvalidRepositoryException
-
createArtifactRepository
public ArtifactRepository createArtifactRepository(String repositoryId, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Deprecated.- Specified by:
createArtifactRepository
in interfaceRepositorySystem
-