@Component(role=RepositoryMetadataManager.class) public class DefaultRepositoryMetadataManager extends org.codehaus.plexus.logging.AbstractLogEnabled implements RepositoryMetadataManager
Constructor and Description |
---|
DefaultRepositoryMetadataManager() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(ArtifactMetadata metadata,
ArtifactRepository localRepository,
ArtifactRepository deploymentRepository)
Deploy metadata to the remote repository.
|
void |
install(ArtifactMetadata metadata,
ArtifactRepository localRepository)
Install the metadata in the local repository.
|
protected Metadata |
readMetadata(File mappingFile)
TODO share with DefaultPluginMappingManager.
|
void |
resolve(RepositoryMetadata metadata,
List<ArtifactRepository> remoteRepositories,
ArtifactRepository localRepository) |
void |
resolve(RepositoryMetadata metadata,
RepositoryRequest request) |
void |
resolveAlways(RepositoryMetadata metadata,
ArtifactRepository localRepository,
ArtifactRepository remoteRepository) |
public void resolve(RepositoryMetadata metadata, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) throws RepositoryMetadataResolutionException
resolve
in interface RepositoryMetadataManager
RepositoryMetadataResolutionException
public void resolve(RepositoryMetadata metadata, RepositoryRequest request) throws RepositoryMetadataResolutionException
resolve
in interface RepositoryMetadataManager
RepositoryMetadataResolutionException
protected Metadata readMetadata(File mappingFile) throws RepositoryMetadataReadException
RepositoryMetadataReadException
public void resolveAlways(RepositoryMetadata metadata, ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataResolutionException
resolveAlways
in interface RepositoryMetadataManager
RepositoryMetadataResolutionException
public void deploy(ArtifactMetadata metadata, ArtifactRepository localRepository, ArtifactRepository deploymentRepository) throws RepositoryMetadataDeploymentException
RepositoryMetadataManager
deploy
in interface RepositoryMetadataManager
metadata
- the metadata to deploylocalRepository
- the local repository to install to firstdeploymentRepository
- the remote repository to deploy toRepositoryMetadataDeploymentException
public void install(ArtifactMetadata metadata, ArtifactRepository localRepository) throws RepositoryMetadataInstallationException
RepositoryMetadataManager
install
in interface RepositoryMetadataManager
metadata
- the metadatalocalRepository
- the local repositoryRepositoryMetadataInstallationException
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.