Interface ProjectDeployer
-
- All Known Implementing Classes:
DefaultProjectDeployer
public interface ProjectDeployer
This defines the interface to deploy a single Maven Project.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deploy(org.apache.maven.project.ProjectBuildingRequest buildingRequest, ProjectDeployerRequest request, org.apache.maven.artifact.repository.ArtifactRepository artifactRepository)
This will deploy a single project which may contain several artifacts.
-
-
-
Method Detail
-
deploy
void deploy(org.apache.maven.project.ProjectBuildingRequest buildingRequest, ProjectDeployerRequest request, org.apache.maven.artifact.repository.ArtifactRepository artifactRepository) throws NoFileAssignedException, ArtifactDeployerException
This will deploy a single project which may contain several artifacts. Those artifacts will be deployed into the appropriate remote repository.@Parameter( defaultValue = "${session}", required = true, readonly = true ) MavenSession session; @Parameter( defaultValue = "${project}", required = true, readonly = true ) MavenProject project; .. @Component ProjectDeployer deployer; ... public void execute() { ProjectDeployerRequest pdr = new ProjectDeployerRequest() .setProject( project ); deployer.deploy( session.getProjectBuildingRequest(), pdr, artifactRepository ); }
- Parameters:
buildingRequest
-ProjectBuildingRequest
request
-ProjectDeployerRequest
artifactRepository
-ArtifactRepository
- Throws:
NoFileAssignedException
- In case of missing file which has not been assigned to project.ArtifactDeployerException
- in case of artifact could not correctly deployed.java.lang.IllegalArgumentException
- in casebuildingRequest
isnull
,request
isnull
orartifactRepository
isnull
.
-
-