public interface ProjectDeployer
Modifier and Type | Method and Description |
---|---|
void |
deploy(ProjectBuildingRequest buildingRequest,
ProjectDeployerRequest request,
ArtifactRepository artifactRepository)
This will deploy a single project which may contain several artifacts.
|
void deploy(ProjectBuildingRequest buildingRequest, ProjectDeployerRequest request, ArtifactRepository artifactRepository) throws NoFileAssignedException, ArtifactDeployerException
@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 ); }
buildingRequest
- ProjectBuildingRequest
request
- ProjectDeployerRequest
artifactRepository
- ArtifactRepository
NoFileAssignedException
- In case of missing file which has not been assigned to project.ArtifactDeployerException
- in case of artifact could not correctly deployed.IllegalArgumentException
- in case buildingRequest
is null
, request
is null
or artifactRepository
is null
.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.