gpt4 book ai didi

plugins - maven.build.timestamp 中的毫秒格式

转载 作者:行者123 更新时间:2023-12-02 17:16:37 25 4
gpt4 key购买 nike

这是我的场景,很简单,但恐怕已经花了我 2 天的时间。

在我的 pom.xml 中,我有这组属性。

<properties>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyyMMdd-HHmmssSSS</maven.build.timestamp.format>
</properties>

格式很好,因为我有毫秒,但是,我只想有毫秒,就像返回的毫秒一样,

date.getTime();

我们可以在 Maven 插件中做到这一点吗?谢谢。

最佳答案

你可以看看这个插件:http://www.mojohaus.org/buildnumber-maven-plugin/create-timestamp-mojo.html 。默认情况下,它返回以毫秒为单位的时间。

关于plugins - maven.build.timestamp 中的毫秒格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25357921/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com