Class DefaultRepositoryMetadataManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager
- All Implemented Interfaces:
RepositoryMetadataManager
,org.codehaus.plexus.logging.LogEnabled
@Component(role=RepositoryMetadataManager.class)
public class DefaultRepositoryMetadataManager
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements RepositoryMetadataManager
- Author:
- Jason van Zyl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) void
resolve
(RepositoryMetadata metadata, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) void
resolve
(RepositoryMetadata metadata, RepositoryRequest request) void
resolveAlways
(RepositoryMetadata metadata, ArtifactRepository localRepository, ArtifactRepository remoteRepository) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
DefaultRepositoryMetadataManager
public DefaultRepositoryMetadataManager()
-
-
Method Details
-
resolve
public void resolve(RepositoryMetadata metadata, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) throws RepositoryMetadataResolutionException - Specified by:
resolve
in interfaceRepositoryMetadataManager
- Throws:
RepositoryMetadataResolutionException
-
resolve
public void resolve(RepositoryMetadata metadata, RepositoryRequest request) throws RepositoryMetadataResolutionException - Specified by:
resolve
in interfaceRepositoryMetadataManager
- Throws:
RepositoryMetadataResolutionException
-
readMetadata
- Throws:
RepositoryMetadataReadException
-
resolveAlways
public void resolveAlways(RepositoryMetadata metadata, ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataResolutionException - Specified by:
resolveAlways
in interfaceRepositoryMetadataManager
- Throws:
RepositoryMetadataResolutionException
-
deploy
public void deploy(ArtifactMetadata metadata, ArtifactRepository localRepository, ArtifactRepository deploymentRepository) throws RepositoryMetadataDeploymentException Description copied from interface:RepositoryMetadataManager
Deploy metadata to the remote repository.- Specified by:
deploy
in interfaceRepositoryMetadataManager
- Parameters:
metadata
- the metadata to deploylocalRepository
- the local repository to install to firstdeploymentRepository
- the remote repository to deploy to- Throws:
RepositoryMetadataDeploymentException
- in case of metadata deployment issue
-
install
public void install(ArtifactMetadata metadata, ArtifactRepository localRepository) throws RepositoryMetadataInstallationException Description copied from interface:RepositoryMetadataManager
Install the metadata in the local repository.- Specified by:
install
in interfaceRepositoryMetadataManager
- Parameters:
metadata
- the metadatalocalRepository
- the local repository- Throws:
RepositoryMetadataInstallationException
- in case of metadata installation issue
-