Add plaintext plugin and output the build number.
This commit is contained in:
parent
6b83991537
commit
d2b3541b19
26
pom.xml
26
pom.xml
|
@ -411,6 +411,32 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.github.olivierlemasle.maven</groupId>
|
||||||
|
<artifactId>plaintext-maven-plugin</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${env.M2_HOME}/build_commits.txt</outputDirectory>
|
||||||
|
<files>
|
||||||
|
<file>
|
||||||
|
<name>versions</name>
|
||||||
|
<append>true</append>
|
||||||
|
<lines>
|
||||||
|
<line>${project.scm.url} ${project.version} ${buildNumber}</line>
|
||||||
|
</lines>
|
||||||
|
</file>
|
||||||
|
</files>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>generate-file</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>write</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||||
</build>
|
</build>
|
||||||
|
|
Loading…
Reference in New Issue