artifact:buildinfo

Full name:

org.apache.maven.plugins:maven-artifact-plugin:3.5.1:buildinfo

Description:

Creates a buildinfo file recording build environment and output (from package), as specified in Reproducible Builds for the JVM for mono-module build, and extended for multi-module build.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 3.2.0.
  • Binds by default to the lifecycle phase: verify.

Optional Parameters

Name Type Since Description
<attach> boolean - Specifies whether to attach the generated buildinfo file to the project.
Default: true
User Property: buildinfo.attach
<detectSkip> boolean - Detect projects/modules with install or deploy skipped: avoid taking fingerprints.
Default: true
User Property: buildinfo.detect.skip
<ignore> List<String> - Artifacts to ignore, specified as a glob matching against ${groupId}/${filename}, for example */*.xml.
User Property: buildinfo.ignore
<ignoreJavadoc> boolean - Ignore javadoc attached artifacts from buildinfo generation.
Default: true
User Property: buildinfo.ignoreJavadoc
<outputTimestamp> String 3.2.0 Timestamp for reproducible output archive entries, either formatted as ISO 8601 yyyy-MM-dd'T'HH:mm:ssXXX or as an int representing seconds since the epoch (like SOURCE_DATE_EPOCH).
Default: ${project.build.outputTimestamp}
<reproducible> boolean 3.1.0 Makes the generated .buildinfo file reproducible, by dropping detailed environment recording: OS will be recorded as "Windows" or "Unix", JVM version as major version only.
Default: false
User Property: buildinfo.reproducible
<skipModules> List<String> 3.5.0 Avoid taking fingerprints for modules specified as glob matching against ${groupId}/${artifactId}.
User Property: buildinfo.skipModules

Parameter Details

<attach>

Specifies whether to attach the generated buildinfo file to the project.
  • Type: boolean
  • Required: report.plugin.goal.no
  • User Property: buildinfo.attach
  • Default: true

<detectSkip>

Detect projects/modules with install or deploy skipped: avoid taking fingerprints.
  • Type: boolean
  • Required: report.plugin.goal.no
  • User Property: buildinfo.detect.skip
  • Default: true

<ignore>

Artifacts to ignore, specified as a glob matching against ${groupId}/${filename}, for example */*.xml.
  • Type: java.util.List<java.lang.String>
  • Required: report.plugin.goal.no
  • User Property: buildinfo.ignore

<ignoreJavadoc>

Ignore javadoc attached artifacts from buildinfo generation.
  • Type: boolean
  • Required: report.plugin.goal.no
  • User Property: buildinfo.ignoreJavadoc
  • Default: true

<outputTimestamp>

Timestamp for reproducible output archive entries, either formatted as ISO 8601 yyyy-MM-dd'T'HH:mm:ssXXX or as an int representing seconds since the epoch (like SOURCE_DATE_EPOCH).
  • Type: java.lang.String
  • Since: 3.2.0
  • Required: report.plugin.goal.no
  • Default: ${project.build.outputTimestamp}

<reproducible>

Makes the generated .buildinfo file reproducible, by dropping detailed environment recording: OS will be recorded as "Windows" or "Unix", JVM version as major version only.
  • Type: boolean
  • Since: 3.1.0
  • Required: report.plugin.goal.no
  • User Property: buildinfo.reproducible
  • Default: false

<skipModules>

Avoid taking fingerprints for modules specified as glob matching against ${groupId}/${artifactId}.
  • Type: java.util.List<java.lang.String>
  • Since: 3.5.0
  • Required: report.plugin.goal.no
  • User Property: buildinfo.skipModules