[[build-info.build-info-goal]]
= `spring-boot:build-info`

`org.springframework.boot:spring-boot-maven-plugin:3.3.0-SNAPSHOT`

Generate a `build-info.properties` file based on the content of the current `MavenProject`.



[[build-info.build-info-goal.optional-parameters]]
== Optional parameters

[cols="3,2,3"]
|===
| Name | Type | Default

| xref:#build-info.build-info-goal.parameter-details.additional-properties[additionalProperties]
| `Map`
|

| xref:#build-info.build-info-goal.parameter-details.exclude-info-properties[excludeInfoProperties]
| `List`
|

| xref:#build-info.build-info-goal.parameter-details.output-file[outputFile]
| `File`
| `${project.build.outputDirectory}/META-INF/build-info.properties`

| xref:#build-info.build-info-goal.parameter-details.skip[skip]
| `boolean`
| `false`

| xref:#build-info.build-info-goal.parameter-details.time[time]
| `String`
| `${project.build.outputTimestamp}`

|===



[[build-info.build-info-goal.parameter-details]]
== Parameter details



[[build-info.build-info-goal.parameter-details.additional-properties]]
=== `additionalProperties`
Additional properties to store in the `build-info.properties` file. Each entry is prefixed by `build.` in the generated `build-info.properties`.

[cols="10h,90"]
|===

| Name
| `additionalProperties`

| Type
| `java.util.Map`

| Default value
|

| User property
|

| Since
|

|===


[[build-info.build-info-goal.parameter-details.exclude-info-properties]]
=== `excludeInfoProperties`
Properties that should be excluded `build-info.properties` file. Can be used to exclude the standard `group`, `artifact`, `name`, `version` or `time` properties as well as items from `additionalProperties`.

[cols="10h,90"]
|===

| Name
| `excludeInfoProperties`

| Type
| `java.util.List`

| Default value
|

| User property
|

| Since
|

|===


[[build-info.build-info-goal.parameter-details.output-file]]
=== `outputFile`
The location of the generated `build-info.properties` file.

[cols="10h,90"]
|===

| Name
| `outputFile`

| Type
| `java.io.File`

| Default value
| `${project.build.outputDirectory}/META-INF/build-info.properties`

| User property
|

| Since
|

|===


[[build-info.build-info-goal.parameter-details.skip]]
=== `skip`
Skip the execution.

[cols="10h,90"]
|===

| Name
| `skip`

| Type
| `boolean`

| Default value
| `false`

| User property
| ``spring-boot.build-info.skip``

| Since
| `3.1.0`

|===


[[build-info.build-info-goal.parameter-details.time]]
=== `time`
The value used for the `build.time` property in a form suitable for `Instant#parse(CharSequence)`. Defaults to `project.build.outputTimestamp` or `session.request.startTime` if the former is not set. To disable the `build.time` property entirely, use `'off'` or add it to `excludeInfoProperties`.

[cols="10h,90"]
|===

| Name
| `time`

| Type
| `java.lang.String`

| Default value
| `${project.build.outputTimestamp}`

| User property
|

| Since
| `2.2.0`

|===
