Re: Retrieving subversion revision number

2007-08-14 Thread DCVer
Hi again, The problem has changed a bit. I would like to get the revision number of the working copy checked out from the svn repository (don't have to be the actual rev number - may be out of date). So.. I think this number can be received from .svn/entries file. Does the maven buildnumber

Re: Retrieving subversion revision number

2007-08-14 Thread Dirk Olmes
The problem has changed a bit. I would like to get the revision number of the working copy checked out from the svn repository (don't have to be the actual rev number - may be out of date). So.. I think this number can be received from .svn/entries file. Does the maven buildnumber plugin is

Re: Retrieving subversion revision number

2007-08-14 Thread DCVer
Ok it works fine now, thanks. I've put the plugin configurations in pluginManagement - not in pure plugins section. That's why it failed before. Dirk Olmes-4 wrote: The problem has changed a bit. I would like to get the revision number of the working copy checked out from the svn repository

Re: Retrieving subversion revision number

2007-08-07 Thread DCVer
Thanks for all replies, but when I use this plugin I receive the version of my my project (e.g. 1.0-SNAPSHOT), but I would like to get somehow the revision number of the svn version (e.g. 768). If someone commits some changes and the revision number turns to 769 this would be shown in some

RE: Retrieving subversion revision number

2007-08-07 Thread Jörg Schaible
DCVer wrote on Tuesday, August 07, 2007 8:57 AM: Thanks for all replies, but when I use this plugin I receive the version of my my project (e.g. 1.0-SNAPSHOT), but I would like to get somehow the revision number of the svn version (e.g. 768). If someone commits some changes and the revision

RE: Retrieving subversion revision number

2007-08-07 Thread DCVer
Hmm, now I see that the revision number is null.. Looks like maven is ignoring the scm tag.. Jörg Schaible wrote: DCVer wrote on Tuesday, August 07, 2007 8:57 AM: Thanks for all replies, but when I use this plugin I receive the version of my my project (e.g. 1.0-SNAPSHOT), but I would

Re: Retrieving subversion revision number

2007-08-07 Thread Nick Stolwijk
I've configured the buildnumber plugin as follows: plugin groupIdorg.codehaus.mojo/groupId artifactIdmaven-buildnumber-plugin/artifactId version0.9.5/version executions execution phasevalidate/phase

RE: Retrieving subversion revision number

2007-08-07 Thread Jörg Schaible
DCVer wrote on Tuesday, August 07, 2007 9:36 AM: Hmm, now I see that the revision number is null.. Looks like maven is ignoring the scm tag.. ?!?! Cannot make any sense out of your comment. What is here your revision number, how do you gather it and how is it related to the SCM tag at all ?

Re: Retrieving subversion revision number

2007-08-07 Thread DCVer
Have you made any configuration to scm plugin (groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId) or used scm tags in your pom.xml? I would be thankful if you could paste your configuration (if u used one of them). My svn repository uses ssh private key to get to it.

Re: Retrieving subversion revision number

2007-08-07 Thread Nick Stolwijk
My SCM section of my pom file (slightly modified for security reasons) scm connectionscm:svn:https://servername:port/svnroot/svn-repository/trunk/connection developerConnectionscm:svn:https://servername:port/svnroot/svn-repository/trunk/developerConnection /scm The only

Re: Retrieving subversion revision number

2007-08-06 Thread ben short
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html On 8/6/07, DCVer [EMAIL PROTECTED] wrote: Hi all, I would like to get the revision number of my project on svn repository using maven2 (or some other tool) and put this number e.g. in some property file. How could this

Re: Retrieving subversion revision number

2007-08-06 Thread Nick Stolwijk
Have a look at the buildnumber plugin, which does exactly that.[1] Hth, Nick Stolwijk [1] http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html DCVer wrote: Hi all, I would like to get the revision number of my project on svn repository using maven2 (or some other tool)

Re: Retrieving subversion revision number

2007-08-06 Thread Lee Meador
You can do it by generating a file with Ant as well. I generate a java source file with a constant in it in the generate-source phase. You could generate a .properties file. This is in the POM under buildplugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution