Interface ProjectDeployer
-
public interface ProjectDeployerThis defines the interface to deploy a single Maven Project.- Author:
- Karl Heinz Marbaise khmarbaise@apache.org
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeploy(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, ArtifactDeployerExceptionThis 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-ProjectBuildingRequestrequest-ProjectDeployerRequestartifactRepository-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 casebuildingRequestisnull,requestisnullorartifactRepositoryisnull.
-
-