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 SummaryFields inherited from interface org.apache.maven.repository.RepositorySystemDEFAULT_LOCAL_REPO_ID, DEFAULT_REMOTE_REPO_ID, DEFAULT_REMOTE_REPO_URL, defaultUserLocalRepository, userHome, userMavenConfigurationHome
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.voidinjectAuthentication(List<ArtifactRepository> repositories, List<Server> servers) Deprecated.Injects the authentication information into the specified repositories.voidinjectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.voidinjectMirror(List<ArtifactRepository> repositories, List<Mirror> mirrors) Deprecated.Injects the mirroring information into the specified repositories.voidinjectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.voidinjectProxy(List<ArtifactRepository> repositories, List<Proxy> proxies) Deprecated.Injects the proxy information into the specified repositories.voidinjectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.voidpublish(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) Deprecated.resolve(ArtifactResolutionRequest request) Deprecated.voidretrieve(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) Deprecated.
- 
Constructor Details- 
LegacyRepositorySystempublic LegacyRepositorySystem()Deprecated.
 
- 
- 
Method Details- 
createArtifactpublic Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type) Deprecated.- Specified by:
- createArtifactin interface- RepositorySystem
 
- 
createArtifactDeprecated.- Specified by:
- createArtifactin interface- RepositorySystem
 
- 
createArtifactWithClassifierpublic Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier) Deprecated.- Specified by:
- createArtifactWithClassifierin interface- RepositorySystem
 
- 
createProjectArtifactDeprecated.- Specified by:
- createProjectArtifactin interface- RepositorySystem
 
- 
createDependencyArtifactDeprecated.- Specified by:
- createDependencyArtifactin interface- RepositorySystem
 
- 
createExtensionArtifactDeprecated.
- 
createParentArtifactDeprecated.
- 
createPluginArtifactDeprecated.- Specified by:
- createPluginArtifactin interface- RepositorySystem
 
- 
buildArtifactRepositoryPolicyDeprecated.
- 
createDefaultLocalRepositoryDeprecated.- Specified by:
- createDefaultLocalRepositoryin interface- RepositorySystem
- Throws:
- InvalidRepositoryException
 
- 
createLocalRepositorypublic ArtifactRepository createLocalRepository(File localRepository) throws InvalidRepositoryException Deprecated.- Specified by:
- createLocalRepositoryin interface- RepositorySystem
- Throws:
- InvalidRepositoryException
 
- 
createDefaultRemoteRepositoryDeprecated.- Specified by:
- createDefaultRemoteRepositoryin interface- RepositorySystem
- Throws:
- InvalidRepositoryException
 
- 
createLocalRepositoryDeprecated.- Throws:
- IOException
 
- 
resolveDeprecated.- Specified by:
- resolvein interface- RepositorySystem
 
- 
getEffectiveRepositoriesDeprecated.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 interface- RepositorySystem
- Parameters:
- repositories- The original repositories, may be- null.
- Returns:
- The effective repositories or nullif the input wasnull.
 
- 
getMirrorDeprecated.Description copied from interface:RepositorySystemDetermines the mirror for the specified repository.- Specified by:
- getMirrorin interface- RepositorySystem
- Parameters:
- repository- The repository to determine the mirror for, must not be- null.
- mirrors- The available mirrors, may be- null.
- Returns:
- The mirror specification for the repository or nullif no mirror matched.
 
- 
injectMirrorDeprecated.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 interface- RepositorySystem
- Parameters:
- repositories- The repositories into which to inject the mirror information, may be- null.
- mirrors- The available mirrors, may be- null.
 
- 
injectMirrorpublic void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.- Specified by:
- injectMirrorin interface- RepositorySystem
 
- 
injectAuthenticationDeprecated.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 interface- RepositorySystem
- Parameters:
- repositories- The repositories into which to inject the authentication information, may be- null.
- servers- The available servers, may be- null.
 
- 
injectAuthenticationpublic void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.- Specified by:
- injectAuthenticationin interface- RepositorySystem
 
- 
injectProxyDeprecated.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 interface- RepositorySystem
- Parameters:
- repositories- The repositories into which to inject the proxy information, may be- null.
- proxies- The available proxies, may be- null.
 
- 
injectProxypublic void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated.- Specified by:
- injectProxyin interface- RepositorySystem
 
- 
retrievepublic void retrieve(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException Deprecated.- Specified by:
- retrievein interface- RepositorySystem
- Throws:
- ArtifactTransferFailedException
- ArtifactDoesNotExistException
 
- 
publishpublic void publish(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException Deprecated.- Specified by:
- publishin interface- RepositorySystem
- Throws:
- ArtifactTransferFailedException
 
- 
buildArtifactRepositorypublic ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException Deprecated.- Specified by:
- buildArtifactRepositoryin interface- RepositorySystem
- Throws:
- InvalidRepositoryException
 
- 
createArtifactRepositorypublic ArtifactRepository createArtifactRepository(String repositoryId, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Deprecated.- Specified by:
- createArtifactRepositoryin interface- RepositorySystem
 
 
-