public interface RepositorySystem
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LOCAL_REPO_ID |
static String |
DEFAULT_REMOTE_REPO_ID |
static String |
DEFAULT_REMOTE_REPO_URL |
static File |
defaultUserLocalRepository |
static String |
userHome |
static File |
userMavenConfigurationHome |
Modifier and Type | Method and Description |
---|---|
ArtifactRepository |
buildArtifactRepository(Repository repository) |
Artifact |
createArtifact(String groupId,
String artifactId,
String version,
String packaging) |
Artifact |
createArtifact(String groupId,
String artifactId,
String version,
String scope,
String type) |
ArtifactRepository |
createArtifactRepository(String id,
String url,
ArtifactRepositoryLayout repositoryLayout,
ArtifactRepositoryPolicy snapshots,
ArtifactRepositoryPolicy releases) |
Artifact |
createArtifactWithClassifier(String groupId,
String artifactId,
String version,
String type,
String classifier) |
ArtifactRepository |
createDefaultLocalRepository() |
ArtifactRepository |
createDefaultRemoteRepository() |
Artifact |
createDependencyArtifact(Dependency dependency) |
ArtifactRepository |
createLocalRepository(File localRepository) |
Artifact |
createPluginArtifact(Plugin plugin) |
Artifact |
createProjectArtifact(String groupId,
String artifactId,
String version) |
List<ArtifactRepository> |
getEffectiveRepositories(List<ArtifactRepository> repositories)
Calculates the effective repositories for the given input repositories which are assumed to be already mirrored
(if applicable).
|
Mirror |
getMirror(ArtifactRepository repository,
List<Mirror> mirrors)
Determines the mirror for the specified repository.
|
void |
injectAuthentication(List<ArtifactRepository> repositories,
List<Server> servers)
Injects the authentication information into the specified repositories.
|
void |
injectAuthentication(org.eclipse.aether.RepositorySystemSession session,
List<ArtifactRepository> repositories) |
void |
injectMirror(List<ArtifactRepository> repositories,
List<Mirror> mirrors)
Injects the mirroring information into the specified repositories.
|
void |
injectMirror(org.eclipse.aether.RepositorySystemSession session,
List<ArtifactRepository> repositories) |
void |
injectProxy(List<ArtifactRepository> repositories,
List<Proxy> proxies)
Injects the proxy information into the specified repositories.
|
void |
injectProxy(org.eclipse.aether.RepositorySystemSession session,
List<ArtifactRepository> repositories) |
void |
publish(ArtifactRepository repository,
File source,
String remotePath,
ArtifactTransferListener transferListener) |
ArtifactResolutionResult |
resolve(ArtifactResolutionRequest request) |
void |
retrieve(ArtifactRepository repository,
File destination,
String remotePath,
ArtifactTransferListener transferListener) |
static final String DEFAULT_LOCAL_REPO_ID
static final String userHome
static final File userMavenConfigurationHome
static final File defaultUserLocalRepository
static final String DEFAULT_REMOTE_REPO_ID
static final String DEFAULT_REMOTE_REPO_URL
Artifact createArtifact(String groupId, String artifactId, String version, String packaging)
Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type)
Artifact createProjectArtifact(String groupId, String artifactId, String version)
Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier)
Artifact createDependencyArtifact(Dependency dependency)
ArtifactRepository buildArtifactRepository(Repository repository) throws InvalidRepositoryException
InvalidRepositoryException
ArtifactRepository createDefaultRemoteRepository() throws InvalidRepositoryException
InvalidRepositoryException
ArtifactRepository createDefaultLocalRepository() throws InvalidRepositoryException
InvalidRepositoryException
ArtifactRepository createLocalRepository(File localRepository) throws InvalidRepositoryException
InvalidRepositoryException
ArtifactRepository createArtifactRepository(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
List<ArtifactRepository> getEffectiveRepositories(List<ArtifactRepository> repositories)
repositories
- The original repositories, may be null
.null
if the input was null
.Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors)
repository
- The repository to determine the mirror for, must not be null
.mirrors
- The available mirrors, may be null
.null
if no mirror matched.void injectMirror(List<ArtifactRepository> repositories, List<Mirror> mirrors)
injectAuthentication(List, List)
or the repositories will end up with the wrong credentials.repositories
- The repositories into which to inject the mirror information, may be null
.mirrors
- The available mirrors, may be null
.void injectProxy(List<ArtifactRepository> repositories, List<Proxy> proxies)
injectMirror(List, List)
or the repositories will end up
with the wrong proxies.repositories
- The repositories into which to inject the proxy information, may be null
.proxies
- The available proxies, may be null
.void injectAuthentication(List<ArtifactRepository> repositories, List<Server> servers)
injectMirror(List, List)
or the repositories will end up with the wrong credentials.repositories
- The repositories into which to inject the authentication information, may be null
.servers
- The available servers, may be null
.void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
ArtifactResolutionResult resolve(ArtifactResolutionRequest request)
void publish(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException
ArtifactTransferFailedException
void retrieve(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.