Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using a timestamp variable in pom.xml

for Maven versions prior to 3.0.0, you need to wrap the build timestamp Maven provides a built-in property called ${maven.build.timestamp} that provides the time the build was initiated and this can be used in your Sealights profile after wrapping in another property

Code Block
languagexml
titlePom.xml with timestamp
linenumberstrue
<properties>
    ...
    <timestamp>${maven.build.timestamp}</timestamp>
    <maven.build.timestamp.format>yyyyMMdd_HHmm</maven.build.timestamp.format>
</properties>

...