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, IllegalArgumentException
@Parameter( defaultValue = "${session}", required=true, readonly = true) MavenSession session; @Parameter( defaultValue = "${project}", required=true, readonly = true) MavenProject project; .. @Component ProjectDeployer deployer; ProjectDeployerRequest pdr = new ProjectDeployerRequest() .setProject (project) .setUpdateReleaseInfo( true ); 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.IllegalArgumentException
- in case of artifact is not correctly assigned.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.