If you are developing a Maven plugin, you need often to deploy a whole project into a repository, which is a little bit cumbersome.
With this component, this can be easily done via the following code parts:
@Parameter ( defaultValue = "${session}", required = true, readonly = true ) private MavenSession session; @Parameter ( defaultValue = "${project}", required = true, readonly = true ) private MavenProject project; @Component private ProjectDeployer deployer; ... public void execute() { ProjectDeployerRequest pdr = new ProjectDeployerRequest() //TODO: Think about setUpdateReleaseInfo().. .setProject( project ).setUpdateReleaseInfo( true ); deployer.deploy( session.getProjectBuildingRequest(), pdr ); ... }