You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by DCVer <ke...@o2.pl> on 2007/08/06 18:17:26 UTC

Retrieving subversion revision number

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 be done?
-- 
View this message in context: http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12019324
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Retrieving subversion revision number

Posted by Jörg Schaible <Jo...@Elsag-Solutions.com>.
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 ?

- Jörg

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

> 
> 
> 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 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 property file or manifest file or
>>> whatever. I think this needs a communication with svn using scm
>>> tags (I have already configured scm). 
>> 
>> You might define a property in the POM like:
>> 
>> <properties>
>> 	<revision>$Revision$</revision>
>> </properties>
>> 
>> This will be updated everytime your POM is checked in. Since this is
>> also the case releasing the artifact, you will always have the
>> proper svn revision for a release within this property.
>> 
>> - Jörg
>> 
>> 
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by Nick Stolwijk <ni...@planet.nl>.
My SCM section of my pom file (slightly modified for security reasons)

    <scm>
        
<connection>scm:svn:https://<servername>:<port>/svnroot/<svn-repository>/trunk</connection>
        
<developerConnection>scm:svn:https://<servername>:<port>/svnroot/<svn-repository>/trunk</developerConnection>
    </scm>

The only other trouble I had with the buildnumber plugin (as I mentioned 
before) that it needs the SVN executable. As far as I know it doesn't 
look for contact to the subversion repository, but uses the svn 
information in your working copy.

Hth,

Nick Stolwijk

DCVer wrote:
> Have you made any configuration to scm plugin
> (<groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-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.
>
>
> Nick Stolwijk wrote:
>   
>> I've configured the buildnumber plugin as follows:
>>
>> <plugin>
>>            <groupId>org.codehaus.mojo</groupId>
>>            <artifactId>maven-buildnumber-plugin</artifactId>
>>            <version>0.9.5</version>
>>            <executions>
>>                <execution>
>>                       <phase>validate</phase>
>>                             <goals>
>>                                     <goal>create</goal>
>>                               </goals>
>>                </execution>
>>            </executions>
>> </plugin>
>>
>> And uses it in a propertie file in src/main/resources:
>> version=Version: ${pom.version} - ${buildNumber}
>>
>> The pom.version is replaced bij mij project version and the buildNumber 
>> is replaced bij my SVN revision at the moment. It does use the SVN 
>> executable, so you need SVN installed (and not only a GUI like Subclipse 
>> or Tortoise).
>>
>> Hth,
>>
>> Nick Stolwijk
>>
>>
>> DCVer wrote:
>>     
>>> 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 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
>>>>> property file or manifest file or whatever. I think this needs a
>>>>> communication with svn using scm tags (I have already configured scm).
>>>>>       
>>>>>           
>>>> You might define a property in the POM like:
>>>>
>>>> <properties>
>>>> 	<revision>$Revision$</revision>
>>>> </properties>
>>>>
>>>> This will be updated everytime your POM is checked in. Since this is
>>>> also
>>>> the case releasing the artifact, you will always have the proper svn
>>>> revision for a release within this property.
>>>>
>>>> - Jörg
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by DCVer <ke...@o2.pl>.
Have you made any configuration to scm plugin
(<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-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.


Nick Stolwijk wrote:
> 
> I've configured the buildnumber plugin as follows:
> 
> <plugin>
>            <groupId>org.codehaus.mojo</groupId>
>            <artifactId>maven-buildnumber-plugin</artifactId>
>            <version>0.9.5</version>
>            <executions>
>                <execution>
>                       <phase>validate</phase>
>                             <goals>
>                                     <goal>create</goal>
>                               </goals>
>                </execution>
>            </executions>
> </plugin>
> 
> And uses it in a propertie file in src/main/resources:
> version=Version: ${pom.version} - ${buildNumber}
> 
> The pom.version is replaced bij mij project version and the buildNumber 
> is replaced bij my SVN revision at the moment. It does use the SVN 
> executable, so you need SVN installed (and not only a GUI like Subclipse 
> or Tortoise).
> 
> Hth,
> 
> Nick Stolwijk
> 
> 
> DCVer wrote:
>> 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 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
>>>> property file or manifest file or whatever. I think this needs a
>>>> communication with svn using scm tags (I have already configured scm).
>>>>       
>>> You might define a property in the POM like:
>>>
>>> <properties>
>>> 	<revision>$Revision$</revision>
>>> </properties>
>>>
>>> This will be updated everytime your POM is checked in. Since this is
>>> also
>>> the case releasing the artifact, you will always have the proper svn
>>> revision for a release within this property.
>>>
>>> - Jörg
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>>     
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12030511
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by Nick Stolwijk <ni...@planet.nl>.
I've configured the buildnumber plugin as follows:

<plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>maven-buildnumber-plugin</artifactId>
           <version>0.9.5</version>
           <executions>
               <execution>
                      <phase>validate</phase>
                            <goals>
                                    <goal>create</goal>
                              </goals>
               </execution>
           </executions>
</plugin>

And uses it in a propertie file in src/main/resources:
version=Version: ${pom.version} - ${buildNumber}

The pom.version is replaced bij mij project version and the buildNumber 
is replaced bij my SVN revision at the moment. It does use the SVN 
executable, so you need SVN installed (and not only a GUI like Subclipse 
or Tortoise).

Hth,

Nick Stolwijk


DCVer wrote:
> 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 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
>>> property file or manifest file or whatever. I think this needs a
>>> communication with svn using scm tags (I have already configured scm).
>>>       
>> You might define a property in the POM like:
>>
>> <properties>
>> 	<revision>$Revision$</revision>
>> </properties>
>>
>> This will be updated everytime your POM is checked in. Since this is also
>> the case releasing the artifact, you will always have the proper svn
>> revision for a release within this property.
>>
>> - Jörg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Retrieving subversion revision number

Posted by DCVer <ke...@o2.pl>.
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 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
>> property file or manifest file or whatever. I think this needs a
>> communication with svn using scm tags (I have already configured scm).
> 
> You might define a property in the POM like:
> 
> <properties>
> 	<revision>$Revision$</revision>
> </properties>
> 
> This will be updated everytime your POM is checked in. Since this is also
> the case releasing the artifact, you will always have the proper svn
> revision for a release within this property.
> 
> - Jörg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12029766
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Retrieving subversion revision number

Posted by Jörg Schaible <Jo...@Elsag-Solutions.com>.
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 number turns to 769 this would be
> shown in some
> property file or manifest file or whatever. I think this needs a
> communication with svn using scm tags (I have already configured scm).

You might define a property in the POM like:

<properties>
	<revision>$Revision$</revision>
</properties>

This will be updated everytime your POM is checked in. Since this is also the case releasing the artifact, you will always have the proper svn revision for a release within this property.

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by DCVer <ke...@o2.pl>.
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
property file or manifest file or whatever. I think this needs a
communication with svn using scm tags (I have already configured scm).


Nick Stolwijk wrote:
> 
> 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) and put this number e.g. in some
>> property
>> file. How could this be done?
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12029403
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by Lee Meador <le...@leemeador.com>.
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 <build><plugins>

<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <executions>
    <execution>
      <id>gensrc</id>
      <phase>generate-sources</phase>
      <configuration>
        <tasks>
          <property name="program.version" value="${parent.version
}"></property>
          <ant antfile="build.xml" dir="." target="versionProperties"
inheritRefs="true" />
        </tasks>
         <sourceRoot>${project.build.directory
}/generated-sources/java</sourceRoot>
      </configuration>
      <goals>
        <goal>run</goal>
      </goals>
    </execution>
  </executions>
</plugin>

This is the Ant target:

<target name="versionProperties" description="create the version properties
file">
    <echo message="Version = ${program.version}" />
    <echo file="${src.dir}/com/mycompany/myapp/ProgramVersion.java">
        package com.mycompany.myapp;
        /** Generated in ANT */
        public class ProgramVersion
        {
           public static final String VERSION = "${program.version}";
        }
    </echo>
</target>

-- Lee Meador

On 8/6/07, Nick Stolwijk <ni...@planet.nl> wrote:
>
> 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) and put this number e.g. in some
> property
> > file. How could this be done?
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

Re: Retrieving subversion revision number

Posted by DCVer <ke...@o2.pl>.
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 (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
>> able
>> to get this number from local files (stored in .svn directory probably)
>> or
>> must connect to svn repository?
> 
> The buildnumber plugin retrieves the svn version number from the local
> working copy. AFAICT it does not access the remote repo for this
> operation.
> 
> -dirk
> 
> -- 
> Anyway kids, have fun, play nicely, be good. And remember - if it ain't
> broke, hit it again.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12143842
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by Dirk Olmes <di...@xanthippe.ping.de>.
> 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 able
> to get this number from local files (stored in .svn directory probably) or
> must connect to svn repository?

The buildnumber plugin retrieves the svn version number from the local
working copy. AFAICT it does not access the remote repo for this
operation.

-dirk

-- 
Anyway kids, have fun, play nicely, be good. And remember - if it ain't
broke, hit it again.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: multi-module project generates invalid pom ?

Posted by "Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER)" <jo...@ext.anpe.fr>.

Just want to add that SapiensSpringCommon, despite his name, is not a module of sapiens !
It's just a project depending on sapiens child module SapiensCommonsCore.

Hope things are clearer now

-----Message d'origine-----
De : Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER) [mailto:joel.costigliola@ext.anpe.fr] 
Envoyé : mardi 14 août 2007 15:05
À : Maven Users List
Objet : multi-module project generates invalid pom ?

Hi there,

I have been reporting few weeks ago some VERY annoying warning like this
one : 
[WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:test' is
invalid. It will be ignored for artifact resolution. Reason: Failed to
validate POM for project sapiens:SapiensCommonsCore at Artifact
[sapiens:SapiensCommonsCore:pom:2.6.0:test] 

I haven't found any good explanation in maven mailing list archive but I
think I may have the reason of such annoying warnings. To explain it I
must give the context when it happens. 

I have a maven2 project called SapiensSpringCommon depending on
sapiens:SapiensCommonsCore test jar. SapiensCommonsCore is a module of
sapiens a maven2 multi-module project of mine.

When I install sapiens modules in my local repository everything runs
fine (no error, no warning).

Warnings arise when I compile SapiensSpringCommon which depends on a
child module of sapiens project (that is SapiensCommonsCore).

I firstly examined SapiensCommonsCore generated pom, and it seems ok (I
have successfully run "mvn validate" on it both in the project directory
and in my local repository).

Then I began modifying the SapiensCommonsCore generated pom (i.e.
SapiensCommonsCore-2.6.0.pom) of my local repository until warnings
disappears from SapiensSpringCommon compilation phase.
It appears that deleting parent section did it.

To conclude, it seems that multi-module produces invalid pom (or
validate phase is not clever enough to validate dependancies on artefact
of a multi-module project). 

What do you think ? maybe I just use badly maven ...
Is there a way to fix that ? 

Regards, 

Joel

 

FYI here's SapiensCommonsCore-2.6.0.pom version NOT producing warnings

<project>
	<modelVersion>4.0.0</modelVersion>
   	<groupId>sapiens</groupId>
	<artifactId>SapiensCommonsCore</artifactId>
	<packaging>jar</packaging>
   	<version>2.6.0</version>
	<name>Sapiens Core</name>
	<!-- build and dependencies section omitted -->
</project>

Here's SapiensCommonsCore-2.6.0.pom original version (PRODUCING
warnings)

<project>
	<parent>
		<groupId>sapiens</groupId>
		<artifactId>SocleSapiens</artifactId>
		<version>2.6.0</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>SapiensCommonsCore</artifactId>
	<packaging>jar</packaging>
	<name>Sapiens Core</name>
	<dependencies>
		<dependency>
			<groupId>commons-net</groupId>
			<artifactId>commons-net</artifactId>
		</dependency>
	</dependencies>
	<!-- build section omitted -->
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


multi-module project generates invalid pom ?

Posted by "Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER)" <jo...@ext.anpe.fr>.
Hi there,

I have been reporting few weeks ago some VERY annoying warning like this
one : 
[WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:test' is
invalid. It will be ignored for artifact resolution. Reason: Failed to
validate POM for project sapiens:SapiensCommonsCore at Artifact
[sapiens:SapiensCommonsCore:pom:2.6.0:test] 

I haven't found any good explanation in maven mailing list archive but I
think I may have the reason of such annoying warnings. To explain it I
must give the context when it happens. 

I have a maven2 project called SapiensSpringCommon depending on
sapiens:SapiensCommonsCore test jar. SapiensCommonsCore is a module of
sapiens a maven2 multi-module project of mine.

When I install sapiens modules in my local repository everything runs
fine (no error, no warning).

Warnings arise when I compile SapiensSpringCommon which depends on a
child module of sapiens project (that is SapiensCommonsCore).

I firstly examined SapiensCommonsCore generated pom, and it seems ok (I
have successfully run "mvn validate" on it both in the project directory
and in my local repository).

Then I began modifying the SapiensCommonsCore generated pom (i.e.
SapiensCommonsCore-2.6.0.pom) of my local repository until warnings
disappears from SapiensSpringCommon compilation phase.
It appears that deleting parent section did it.

To conclude, it seems that multi-module produces invalid pom (or
validate phase is not clever enough to validate dependancies on artefact
of a multi-module project). 

What do you think ? maybe I just use badly maven ...
Is there a way to fix that ? 

Regards, 

Joel

 

FYI here's SapiensCommonsCore-2.6.0.pom version NOT producing warnings

<project>
	<modelVersion>4.0.0</modelVersion>
   	<groupId>sapiens</groupId>
	<artifactId>SapiensCommonsCore</artifactId>
	<packaging>jar</packaging>
   	<version>2.6.0</version>
	<name>Sapiens Core</name>
	<!-- build and dependencies section omitted -->
</project>

Here's SapiensCommonsCore-2.6.0.pom original version (PRODUCING
warnings)

<project>
	<parent>
		<groupId>sapiens</groupId>
		<artifactId>SocleSapiens</artifactId>
		<version>2.6.0</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>SapiensCommonsCore</artifactId>
	<packaging>jar</packaging>
	<name>Sapiens Core</name>
	<dependencies>
		<dependency>
			<groupId>commons-net</groupId>
			<artifactId>commons-net</artifactId>
		</dependency>
	</dependencies>
	<!-- build section omitted -->
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by DCVer <ke...@o2.pl>.
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 plugin is able
to get this number from local files (stored in .svn directory probably) or
must connect to svn repository?

Thanks in advance


nick_stolwijk wrote:
> 
> 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) and put this number e.g. in some
>> property
>> file. How could this be done?
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12140212
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by Nick Stolwijk <ni...@planet.nl>.
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) and put this number e.g. in some property
> file. How could this be done?
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Retrieving subversion revision number

Posted by ben short <ja...@gmail.com>.
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

On 8/6/07, DCVer <ke...@o2.pl> 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 be done?
> --
> View this message in context: http://www.nabble.com/Retrieving-subversion-revision-number-tf4225135s177.html#a12019324
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org