Rename Maven plugin mojo
Rename the goal from `generate-build-info` to `build-info` for consistency. See gh-2559pull/3799/merge
parent
9c733128ac
commit
10012cfddc
@ -0,0 +1,56 @@
|
||||
-----
|
||||
Generate build information
|
||||
-----
|
||||
Stephane Nicoll
|
||||
-----
|
||||
2016-03-17
|
||||
-----
|
||||
|
||||
Spring Boot Actuator displays build-related information if a <<<META-INF/boot/build.properties>>>
|
||||
file is present. The <<<build-info>>> goal generates such file with the coordinates of the project
|
||||
and the build time. It also allows you to add an arbitrary number of additional properties:
|
||||
|
||||
---
|
||||
<project>
|
||||
...
|
||||
<build>
|
||||
...
|
||||
<plugins>
|
||||
...
|
||||
<plugin>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>${project.artifactId}</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>build-info</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<additionalProperties>
|
||||
<encoding.source>UTF-8</encoding.source>
|
||||
<encoding.reporting>UTF-8</encoding.reporting>
|
||||
<java.source>${maven.compiler.source}</java.source>
|
||||
<java.target>${maven.compiler.target}</java.target>
|
||||
</additionalProperties>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
...
|
||||
</plugin>
|
||||
...
|
||||
</plugins>
|
||||
...
|
||||
</build>
|
||||
...
|
||||
</project>
|
||||
---
|
||||
|
||||
This configuration will generate a <<<build.properties>>> at the expected location with four
|
||||
additional keys. Note that <<<maven.compiler.source>>> and <<<maven.compiler.target>>> are
|
||||
expected to be regular properties available in the project. They will be interpolated as you
|
||||
would expect.
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue