public interface ProjectDeployer
This defines the interface to deploy a single Maven Project.
- Author:
- Karl Heinz Marbaise khmarbaise@apache.org
-
Method Summary
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 Details
-
deploy
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.
IllegalArgumentException
- in case buildingRequest
is null
, request
is null
or artifactRepository
is null
.