Class Maven31ArtifactDeployer
- java.lang.Object
-
- org.apache.maven.shared.transfer.artifact.deploy.internal.Maven31ArtifactDeployer
-
- All Implemented Interfaces:
ArtifactDeployer
@Component(role=ArtifactDeployer.class, hint="maven31") class Maven31ArtifactDeployer extends java.lang.Object implements ArtifactDeployer
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.aether.RepositorySystem
repositorySystem
-
Constructor Summary
Constructors Constructor Description Maven31ArtifactDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deploy(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
void
deploy(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.repository.ArtifactRepository remoteRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
private org.eclipse.aether.repository.RemoteRepository
getRemoteRepository(org.eclipse.aether.RepositorySystemSession session, org.apache.maven.artifact.repository.ArtifactRepository remoteRepository)
-
-
-
Method Detail
-
deploy
public void deploy(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactDeployerException
- Specified by:
deploy
in interfaceArtifactDeployer
- Parameters:
buildingRequest
-ProjectBuildingRequest
mavenArtifacts
-Artifact
- Throws:
ArtifactDeployerException
- in case of an error.
-
deploy
public void deploy(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.repository.ArtifactRepository remoteRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactDeployerException
- Specified by:
deploy
in interfaceArtifactDeployer
- Parameters:
buildingRequest
- the building requestremoteRepository
- the repository to deploy to. Ifnull
themavenArtifact.getRepository()
is used.mavenArtifacts
- the artifacts to deploy- Throws:
ArtifactDeployerException
- in case of an error.
-
getRemoteRepository
private org.eclipse.aether.repository.RemoteRepository getRemoteRepository(org.eclipse.aether.RepositorySystemSession session, org.apache.maven.artifact.repository.ArtifactRepository remoteRepository) throws ArtifactDeployerException
- Throws:
ArtifactDeployerException
-
-