@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() |
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–2023 The Apache Software Foundation. All rights reserved.