plugins - Milliseconds format in maven.build.timestamp -
this scenario, it's pretty simple afraid took me 2 days already.
in pom.xml, have set of properties.
<properties> <timestamp>${maven.build.timestamp}</timestamp> <maven.build.timestamp.format>yyyymmdd-hhmmsssss</maven.build.timestamp.format> </properties>
the format fine because i've got milliseconds in it, however, wanted have milliseconds, 1 returned in,
date.gettime();
can in maven plugins? thanks.
you can have @ plugin: http://www.mojohaus.org/buildnumber-maven-plugin/create-timestamp-mojo.html. default, returns time in milliseconds.
Comments
Post a Comment