Package org.apache.maven.repository
Interface RepositorySystem
- All Known Implementing Classes:
LegacyRepositorySystem
Deprecated.
- Since:
- 3.0-alpha
- Author:
- Jason van Zyl
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildArtifactRepository
(Repository repository) Deprecated.createArtifact
(String groupId, String artifactId, String version, String packaging) Deprecated.Deprecated.createArtifactRepository
(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Deprecated.createArtifactWithClassifier
(String groupId, String artifactId, String version, String type, String classifier) Deprecated.Deprecated.Deprecated.createDependencyArtifact
(Dependency dependency) Deprecated.createLocalRepository
(File localRepository) Deprecated.createPluginArtifact
(Plugin plugin) Deprecated.createProjectArtifact
(String groupId, String artifactId, String version) 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.
-
Field Details
-
DEFAULT_LOCAL_REPO_ID
Deprecated.- See Also:
-
userHome
Deprecated. -
userMavenConfigurationHome
Deprecated. -
defaultUserLocalRepository
Deprecated. -
DEFAULT_REMOTE_REPO_ID
Deprecated.- See Also:
-
DEFAULT_REMOTE_REPO_URL
Deprecated.- See Also:
-
-
Method Details
-
createArtifact
Deprecated. -
createArtifact
Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type) Deprecated. -
createProjectArtifact
Deprecated. -
createArtifactWithClassifier
Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier) Deprecated. -
createPluginArtifact
Deprecated. -
createDependencyArtifact
Deprecated. -
buildArtifactRepository
Deprecated.- Throws:
InvalidRepositoryException
-
createDefaultRemoteRepository
Deprecated.- Throws:
InvalidRepositoryException
-
createDefaultLocalRepository
Deprecated.- Throws:
InvalidRepositoryException
-
createLocalRepository
Deprecated.- Throws:
InvalidRepositoryException
-
createArtifactRepository
ArtifactRepository createArtifactRepository(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Deprecated. -
getEffectiveRepositories
Deprecated.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.- Parameters:
repositories
- The original repositories, may benull
.- Returns:
- The effective repositories or
null
if the input wasnull
.
-
getMirror
Deprecated.Determines the mirror for the specified repository.- 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.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 beforeinjectAuthentication(List, List)
or the repositories will end up with the wrong credentials.- Parameters:
repositories
- The repositories into which to inject the mirror information, may benull
.mirrors
- The available mirrors, may benull
.
-
injectProxy
Deprecated.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 afterinjectMirror(List, List)
or the repositories will end up with the wrong proxies.- Parameters:
repositories
- The repositories into which to inject the proxy information, may benull
.proxies
- The available proxies, may benull
.
-
injectAuthentication
Deprecated.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 afterinjectMirror(List, List)
or the repositories will end up with the wrong credentials.- Parameters:
repositories
- The repositories into which to inject the authentication information, may benull
.servers
- The available servers, may benull
.
-
injectMirror
void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated. -
injectProxy
void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated. -
injectAuthentication
void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) Deprecated. -
resolve
Deprecated. -
publish
void publish(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException Deprecated.- Throws:
ArtifactTransferFailedException
-
retrieve
void retrieve(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException Deprecated.
-
MavenRepositorySystem
if needed, or maven-resolver directly, until maven 4.x api is out