tools:set-artifact-file

Helper to install a specific file (or the projects pom) as the projects artifact file.

Custom packaging will need to define a artifact handler plexus component to map desired file extention.

Mojo Attributes :

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: package

Required Parameters

Name Type Description
targetFile File The target file to set as the project's artifact.

Parameter Details

targetFile

The target file to set as the project's artifact.

  • Type : java.io.File
  • Required : Yes
  • Expression : ${project.file}