maven输出版本到文件
Contents
maven输出版本到文件
https://stackoverflow.com/questions/3532135/using-maven-to-output-the-version-number-to-a-text-file
Create a text file somewhere in src/main/resources, call it version.txt (or whatever)
File content:
${project.version}
now in your pom.xml, inside the build element, put this block:
|
|
Author -
LastMod 2020-03-22