I have a Maven2 project, and I need to add, in a properties file, the current version and the current date.
For the current version, I've used ${project.version}
, which works correctly.
My question is how can I set the current date (i.e. the date when the build is done by Maven2) in my properties file:
client.version=Version ${project.version}
client.build=???
(in addition, if I can specify the format for the date, it will be really great)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…