@Component(role=ArtifactDeployer.class) public class DefaultArtifactDeployer extends Object implements ArtifactDeployer, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Constructor and Description |
---|
DefaultArtifactDeployer() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(org.codehaus.plexus.context.Context context)
Injects the Plexus content.
|
void |
deploy(ProjectBuildingRequest request,
ArtifactRepository remoteRepository,
Collection<Artifact> mavenArtifacts) |
void |
deploy(ProjectBuildingRequest request,
Collection<Artifact> mavenArtifacts) |
protected static boolean |
isMaven31() |
public void deploy(ProjectBuildingRequest request, Collection<Artifact> mavenArtifacts) throws ArtifactDeployerException
deploy
in interface ArtifactDeployer
request
- ProjectBuildingRequest
mavenArtifacts
- Artifact
ArtifactDeployerException
- in case of an error.public void deploy(ProjectBuildingRequest request, ArtifactRepository remoteRepository, Collection<Artifact> mavenArtifacts) throws ArtifactDeployerException
deploy
in interface ArtifactDeployer
request
- the building requestremoteRepository
- the repository to deploy to. If null
the mavenArtifact.getRepository()
is
used.mavenArtifacts
- the artifacts to deployArtifactDeployerException
- in case of an error.protected static boolean isMaven31()
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
context
- Plexus context to inject.org.codehaus.plexus.context.ContextException
- if the PlexusContainer could not be located.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.