build-helper:attach-artifact

Full name:

org.codehaus.mojo:build-helper-maven-plugin:1.7:attach-artifact

Description:

Attach additional artifacts to be installed and deployed.

Attributes:

  • Requires a Maven project to be executed.
  • Since version: 1.0.
  • Binds by default to the lifecycle phase: package.

Required Parameters

Name Type Since Description
artifacts Artifact[] 1.0 Attach an array of artifacts to the project.
basedir String 1.5 This project's base directory.

Optional Parameters

Name Type Since Description
runOnlyAtExecutionRoot boolean 1.5 This will cause the execution to be run only at the top of a given module tree. That is, run in the project contained in the same folder where the mvn execution was launched.
Default value is: false.
skipAttach boolean 1.6 This allows to skip the attach execution in case it is known that the corresponding file does not exists. For exemple, when the previous ant-run task is skipped with a unless.
Default value is: false.

Parameter Details

artifacts:

Attach an array of artifacts to the project.
  • Type: org.codehaus.mojo.buildhelper.Artifact[]
  • Since: 1.0
  • Required: Yes

basedir:

This project's base directory.
  • Type: java.lang.String
  • Since: 1.5
  • Required: Yes
  • Expression: ${basedir}

runOnlyAtExecutionRoot:

This will cause the execution to be run only at the top of a given module tree. That is, run in the project contained in the same folder where the mvn execution was launched.
  • Type: boolean
  • Since: 1.5
  • Required: No
  • Expression: ${buildhelper.runOnlyAtExecutionRoot}
  • Default: false

skipAttach:

This allows to skip the attach execution in case it is known that the corresponding file does not exists. For exemple, when the previous ant-run task is skipped with a unless.
  • Type: boolean
  • Since: 1.6
  • Required: No
  • Expression: ${buildhelper.skipAttach}
  • Default: false