You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Prashant <pr...@gmail.com> on 2012/08/28 15:39:37 UTC
Build number incremented twice
Hi
I am using the buildnumber-maven-plugin to increment the version no.
and my POM looks below.
the version no. is incremented twice.
I am calling the maven tasks in this way each time i build
"mvn validate"
do i need to pass any parameters?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<format>3.1.{0,number}</format>
<items>
<item>buildNumber0</item>
</items>
<doCheck>false</doCheck>
<doUpdate>true</doUpdate>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
Thanks in Advance.
Prashant
--
View this message in context: http://maven.40175.n5.nabble.com/Build-number-incremented-twice-tp5718627.html
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: Build number incremented twice
Posted by Anders Hammar <an...@hammar.net>.
As that is a Codehaus Mojo plugin, you be more lucky over at the Mojo
users list [1].
/Anders
[1] http://mojo.codehaus.org/buildnumber-maven-plugin/mail-lists.html
On Tue, Aug 28, 2012 at 3:39 PM, Prashant <pr...@gmail.com> wrote:
> Hi
> I am using the buildnumber-maven-plugin to increment the version no.
> and my POM looks below.
> the version no. is incremented twice.
>
> I am calling the maven tasks in this way each time i build
> "mvn validate"
>
> do i need to pass any parameters?
>
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>buildnumber-maven-plugin</artifactId>
> <version>1.1</version>
> <configuration>
> <format>3.1.{0,number}</format>
> <items>
> <item>buildNumber0</item>
> </items>
> <doCheck>false</doCheck>
> <doUpdate>true</doUpdate>
> </configuration>
> <executions>
> <execution>
> <phase>validate</phase>
> <goals>
> <goal>create</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> Thanks in Advance.
> Prashant
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Build-number-incremented-twice-tp5718627.html
> 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