@Service(value="artifactConverter#legacy-to-default") public class LegacyToDefaultConverter extends Object implements ArtifactConverter
Constructor and Description |
---|
LegacyToDefaultConverter() |
Modifier and Type | Method and Description |
---|---|
void |
clearWarnings()
Clear the list of warning messages.
|
void |
convert(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository targetRepository)
Convert an provided artifact, and place it into the destination repository.
|
org.apache.maven.artifact.factory.ArtifactFactory |
getArtifactFactory() |
org.apache.maven.artifact.handler.manager.ArtifactHandlerManager |
getArtifactHandlerManager() |
List<ChecksumAlgorithm> |
getDigesters() |
org.apache.maven.model.converter.ModelConverter |
getTranslator() |
Map<org.apache.maven.artifact.Artifact,List<String>> |
getWarnings()
Get the map of accumulated warnings for the conversion.
|
void |
initialize() |
boolean |
isDryrun() |
boolean |
isForce() |
void |
setArtifactFactory(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory) |
void |
setArtifactHandlerManager(org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager) |
void |
setDigesters(List<ChecksumAlgorithm> digesters) |
void |
setDryrun(boolean dryrun) |
void |
setForce(boolean force) |
void |
setTranslator(org.apache.maven.model.converter.ModelConverter translator) |
public LegacyToDefaultConverter()
@PostConstruct public void initialize() throws PlexusSisuBridgeException
PlexusSisuBridgeException
public void convert(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository targetRepository) throws ArtifactConversionException
ArtifactConverter
convert
in interface ArtifactConverter
artifact
- the artifact to convert.targetRepository
- the respository to send the artifact to.ArtifactConversionException
public void clearWarnings()
ArtifactConverter
clearWarnings
in interface ArtifactConverter
public Map<org.apache.maven.artifact.Artifact,List<String>> getWarnings()
ArtifactConverter
getWarnings
in interface ArtifactConverter
Map
<Artifact
, String
> warning messages.public List<ChecksumAlgorithm> getDigesters()
public void setDigesters(List<ChecksumAlgorithm> digesters)
public org.apache.maven.model.converter.ModelConverter getTranslator()
public void setTranslator(org.apache.maven.model.converter.ModelConverter translator)
public org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
public void setArtifactFactory(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
public org.apache.maven.artifact.handler.manager.ArtifactHandlerManager getArtifactHandlerManager()
public void setArtifactHandlerManager(org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager)
public boolean isForce()
public void setForce(boolean force)
public boolean isDryrun()
public void setDryrun(boolean dryrun)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.