Questions tagged [buildnumber-maven-plugin]

This mojo is designed to get a unique build number for each time you build your project

Introduction

Official site : http://mojo.codehaus.org/buildnumber-maven-plugin/

This mojo is designed to get a unique build number for each time you build your project. So while your version may remain constant at 1.0-SNAPSHOT for many iterations until release, you will have a build number that can uniquely identify each build during that time. The build number is obtained from scm, and in particular, at this time, from svn. You can then place that build number in metadata, which can be accessed from your app, if desired.

The mojo also has a couple of extra functions to ensure you get the proper build number. First, your local repository is checked to make sure it is up to date. Second, your local repository is automatically updated, so that you get the latest build number. Both these functions can be suppressed, if desired.

Optionally, you can configure this mojo to produce a revision based on a timestamp, or on a sequence, without requiring any interaction with an SCM system. Note that currently, supported SCMs are : subversion, git and mercurial.

Goals Overview

buildnumber:create: Create a build number. buildnumber:create-timestamp: Create a timestamp. buildnumber:hgchangeset: Create properties for changeSet and changeSetDate from a Mercurial repository.

Usage

Instructions on how to use the Build Number Maven Plugin can be found on the usage page.

68 questions
0
votes
1 answer

Using Maven for building my project, can I include the version in a specific file?

I have a file that I'd like to show the version on top. For example, if my POM.xml is on version 1.1-SNAPSHOT, I like this file also include 1.1-SNAPSHOT on top of it (or somewhere close to top). When I release, I want the version change to 1.1…
0
votes
1 answer

buildnumber maven plugin return buildnumber null

Pls help me guys what i do wrong scm:git:https://github.com/MyName/MyProject.git scm:git:https://github.com/MyName/MyProject.git
Tristate
  • 1,498
  • 2
  • 18
  • 38
0
votes
0 answers

buildnumber-maven-plugin Placing Jar in Branch Folder

I'd like to create jar files like target/myproject-mytag.jar, but when I run maven, I end up with target/myproject-tags/mytag/myproject.jar. How can I get a jar file named myproject-mytag.jar? Here's the important snippets from my pom:
DavidZemon
  • 501
  • 5
  • 21
0
votes
0 answers

IDEA IntelliJ maven validate hangs during buildnumber git pull, CLI mvn validate works

What am i trying to do Build own java jar libraries and publish them to github as maven repository. Checkout those libraries as extensions to simplify updates as i have now half a dozen projects depending on those tiny libs and updates become…
Kevin Streicher
  • 484
  • 1
  • 8
  • 25
0
votes
2 answers

Maven stop build if svn is out of date

After reading through a lot of SO questions as well as other sites I still haven't been able to exactly address this problem. We have a long build cycle (10-20 mins) because there are a lot of dependencies. It sometimes happens that you start a…
aurbano
  • 3,324
  • 1
  • 25
  • 39
0
votes
1 answer

Build-number doesn't work when running from IDE

I'm trying to setup automatic append of git commit hash to maven artifacts. I managed to get it working flawlessly when building with maven from console but when I run it from IntelliJ IDEA I get artifacts with names like mainlogic-${buildNumber} Is…
Grzegorz Piwowarek
  • 13,172
  • 8
  • 62
  • 93
0
votes
1 answer

Maven: webstart, buildnumber and finalName conflict?

I generate a build-number with this part of the POM file: org.codehaus.mojo buildnumber-maven-plugin 1.2
0
votes
1 answer

how to Include the buildnumber in maven pdf:pdf

I am trying to include the build number in the pdf's that get generated with the maven pdf plugin. I have all the documentation of the project I am working on written as a maven site. This way all the documentation is stored with the source code.…
Ron
  • 776
  • 8
  • 14
1 2 3 4
5