Well... should I modify this source code? Build then some jar? Or import the
existing one jar and override the getRevision() method? Or can it be
configurable from pom.xml file in <plugins> section?


Dirk Olmes-4 wrote:
> 
> DCVer wrote:
>> Thanks, nice to know that, but I still cannot find any useful
>> information,
>> don't kow how to configure scm to receive "Last Changed Rev" number...
> 
> It actually turns out to be quite easy: Although the buildnumber plugin 
> uses Maven's SCM API (http://maven.apache.org/scm/), the parsing happens 
> in the plugin itself. Look at 
> https://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-1.0-beta-1/src/main/java/org/codehaus/mojo/build/InfoScmResult.java
> 
> All you need to do is to patch the getRevision() to return the revision 
> attribute of the commit element instead of the revision attribute of the 
> entry element.
> 
> -dirk
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/maven-buildnumber-plugin---revision-number---last-changed-rev-number-tp16583306s177p16743969.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to