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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -