@Component(role=RepositorySystem.class, hint="default") public class LegacyRepositorySystem extends Object implements RepositorySystem
DEFAULT_LOCAL_REPO_ID, DEFAULT_REMOTE_REPO_ID, DEFAULT_REMOTE_REPO_URL, defaultUserLocalRepository, userHome, userMavenConfigurationHome| Constructor and Description |
|---|
LegacyRepositorySystem() |
| Modifier and Type | Method and Description |
|---|---|
ArtifactRepository |
buildArtifactRepository(Repository repo) |
ArtifactRepositoryPolicy |
buildArtifactRepositoryPolicy(RepositoryPolicy policy) |
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 repositoryId,
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 d) |
Artifact |
createExtensionArtifact(String groupId,
String artifactId,
String version) |
ArtifactRepository |
createLocalRepository(File localRepository) |
ArtifactRepository |
createLocalRepository(String url,
String repositoryId) |
Artifact |
createParentArtifact(String groupId,
String artifactId,
String version) |
Artifact |
createPluginArtifact(Plugin plugin) |
Artifact |
createProjectArtifact(String groupId,
String artifactId,
String metaVersionId) |
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) |
public LegacyRepositorySystem()
public Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type)
createArtifact in interface RepositorySystempublic Artifact createArtifact(String groupId, String artifactId, String version, String packaging)
createArtifact in interface RepositorySystempublic Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier)
createArtifactWithClassifier in interface RepositorySystempublic Artifact createProjectArtifact(String groupId, String artifactId, String metaVersionId)
createProjectArtifact in interface RepositorySystempublic Artifact createDependencyArtifact(Dependency d)
createDependencyArtifact in interface RepositorySystempublic Artifact createExtensionArtifact(String groupId, String artifactId, String version)
public Artifact createParentArtifact(String groupId, String artifactId, String version)
public Artifact createPluginArtifact(Plugin plugin)
createPluginArtifact in interface RepositorySystempublic ArtifactRepositoryPolicy buildArtifactRepositoryPolicy(RepositoryPolicy policy)
public ArtifactRepository createDefaultLocalRepository() throws InvalidRepositoryException
createDefaultLocalRepository in interface RepositorySystemInvalidRepositoryExceptionpublic ArtifactRepository createLocalRepository(File localRepository) throws InvalidRepositoryException
createLocalRepository in interface RepositorySystemInvalidRepositoryExceptionpublic ArtifactRepository createDefaultRemoteRepository() throws InvalidRepositoryException
createDefaultRemoteRepository in interface RepositorySystemInvalidRepositoryExceptionpublic ArtifactRepository createLocalRepository(String url, String repositoryId) throws IOException
IOExceptionpublic ArtifactResolutionResult resolve(ArtifactResolutionRequest request)
resolve in interface RepositorySystempublic List<ArtifactRepository> getEffectiveRepositories(List<ArtifactRepository> repositories)
RepositorySystemgetEffectiveRepositories in interface RepositorySystemrepositories - The original repositories, may be null.null if the input was null.public Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors)
RepositorySystemgetMirror in interface RepositorySystemrepository - The repository to determine the mirror for, must not be null.mirrors - The available mirrors, may be null.null if no mirror matched.public void injectMirror(List<ArtifactRepository> repositories, List<Mirror> mirrors)
RepositorySystemRepositorySystem.injectAuthentication(List, List) or the repositories will end up with the wrong credentials.injectMirror in interface RepositorySystemrepositories - The repositories into which to inject the mirror information, may be null.mirrors - The available mirrors, may be null.public void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
injectMirror in interface RepositorySystempublic void injectAuthentication(List<ArtifactRepository> repositories, List<Server> servers)
RepositorySystemRepositorySystem.injectMirror(List, List) or the repositories will end up with the wrong credentials.injectAuthentication in interface RepositorySystemrepositories - The repositories into which to inject the authentication information, may be null.servers - The available servers, may be null.public void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
injectAuthentication in interface RepositorySystempublic void injectProxy(List<ArtifactRepository> repositories, List<Proxy> proxies)
RepositorySystemRepositorySystem.injectMirror(List, List) or the repositories will end up
with the wrong proxies.injectProxy in interface RepositorySystemrepositories - The repositories into which to inject the proxy information, may be null.proxies - The available proxies, may be null.public void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
injectProxy in interface RepositorySystempublic void retrieve(ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException
retrieve in interface RepositorySystemArtifactTransferFailedExceptionArtifactDoesNotExistExceptionpublic void publish(ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException
publish in interface RepositorySystemArtifactTransferFailedExceptionpublic ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException
buildArtifactRepository in interface RepositorySystemInvalidRepositoryExceptionpublic ArtifactRepository createArtifactRepository(String repositoryId, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
createArtifactRepository in interface RepositorySystemCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.