How to access maven.build.timestamp for resource filtering

前端 未结 4 550
北荒
北荒 2020-12-02 08:20

I am using maven 3.0.4 and would like to make the build timestamp accessible to my application. For this, I\'m putting a placeholder in a .properties file and l

4条回答
  •  隐瞒了意图╮
    2020-12-02 08:35

    In order to enrich the Stackoverflow content for others, that like me, found this post as a way to solve the "problem" of ${maven.build.timestamp}. This is not a maven bug, but an expected behavior of m2e, as can be seen in this post.

    Therefore, I believe that we can not expect the solution to be "corrected", since, from what I understand, the correction involves conceptual issues.

    In my case, what I did was use the plugin (buildnumber-maven-plugin) as described in this other post.

提交回复
热议问题