Class DefaultArtifactDeployer
- java.lang.Object
-
- org.apache.maven.shared.transfer.artifact.deploy.internal.DefaultArtifactDeployer
-
- All Implemented Interfaces:
ArtifactDeployer,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@Component(role=ArtifactDeployer.class) class DefaultArtifactDeployer extends java.lang.Object implements ArtifactDeployer, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.PlexusContainercontainer
-
Constructor Summary
Constructors Constructor Description DefaultArtifactDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleancanFindCoreClass(java.lang.String className)voidcontextualize(org.codehaus.plexus.context.Context context)Injects the Plexus content.voiddeploy(org.apache.maven.project.ProjectBuildingRequest request, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)voiddeploy(org.apache.maven.project.ProjectBuildingRequest request, org.apache.maven.artifact.repository.ArtifactRepository remoteRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)private booleanisMaven31()private voidvalidateParameters(org.apache.maven.project.ProjectBuildingRequest request, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
-
-
-
Method Detail
-
deploy
public void deploy(org.apache.maven.project.ProjectBuildingRequest request, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactDeployerException- Specified by:
deployin interfaceArtifactDeployer- Parameters:
request-ProjectBuildingRequestmavenArtifacts-Artifact- Throws:
ArtifactDeployerException- in case of an error.
-
deploy
public void deploy(org.apache.maven.project.ProjectBuildingRequest request, org.apache.maven.artifact.repository.ArtifactRepository remoteRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactDeployerException- Specified by:
deployin interfaceArtifactDeployer- Parameters:
request- the building requestremoteRepository- the repository to deploy to. IfnullthemavenArtifact.getRepository()is used.mavenArtifacts- the artifacts to deploy- Throws:
ArtifactDeployerException- in case of an error.
-
validateParameters
private void validateParameters(org.apache.maven.project.ProjectBuildingRequest request, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
-
isMaven31
private boolean isMaven31()
- Returns:
- true if the current Maven version is Maven 3.1.
-
canFindCoreClass
private boolean canFindCoreClass(java.lang.String className)
-
contextualize
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextExceptionInjects the Plexus content.- Specified by:
contextualizein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable- Parameters:
context- Plexus context to inject.- Throws:
org.codehaus.plexus.context.ContextException- if the PlexusContainer could not be located.
-
-