4

I'm able to get the buildNumber and build time stamp in manifest.mf file by configuring as shown below:

<manifestEntries>
<Build-Time>${maven.build.timestamp}</Build-Time>
<revision>${buildNumber}</revision> 
</manifestEntries>

Can you please suggest me how to get the last changed revision and last changed date of scm?

<scm>
<last-changed-revision>0</last-changed-revision>
<last-changed-date>N/A</last-changed-date>
</scm>
morgano
  • 17,210
  • 10
  • 45
  • 56
  • Which SCM? There may be a generic solution, but probably helpful if you specify what you're using. – Duncan Jones Jun 17 '14 at 10:45
  • SVN location from where Maven will check out the source code – user3748035 Jun 17 '14 at 10:57
  • 1
    Not sure about date, but SVN revision number is covered here: http://maven.apache.org/plugin-developers/cookbook/add-svn-revision-to-manifest.html. Also closely related: [How to display SVN version in Maven usng the build-number plugin](http://stackoverflow.com/questions/4874813/how-to-display-svn-version-in-maven-usng-the-build-number-plugin) – Duncan Jones Jun 17 '14 at 10:59
  • We are able to get the latest revision number from here but can you please tell me how to get previous revision number – user3748035 Jun 17 '14 at 11:02
  • 1
    You mean the last-but-one SVN revision number and date? I suspect that would be very hard to get - why do you need it? – Duncan Jones Jun 17 '14 at 11:04
  • yes..i need both the revision numbers – user3748035 Jun 17 '14 at 11:12
  • yes..i need both the revision numbers – user3748035 Jun 18 '14 at 08:29

0 Answers0