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 |
static final String DEFAULT_LOCAL_REPO_ID
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 createPluginArtifact(Plugin plugin)
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(RepositorySystemSession session, List<ArtifactRepository> repositories)
void injectProxy(RepositorySystemSession session, List<ArtifactRepository> repositories)
void injectAuthentication(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–2014 The Apache Software Foundation. All rights reserved.