• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Incrementing project build number in Maven

 
Tim Francisco
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am looking at Maven as a build/dependency tool reading information in post/blogs. One of things that I still don't know is how to manage the project build number. I would appreciate if someone could explain me or show me some references/examples for best practices to managing it.

Thank you.
Tim
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manage it how?
 
Tim Francisco
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Manage it how?


Sorry about my question being not clear enough.

My question was HOW to have Maven increment the project build number?

Thank you.
T
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
 
Tim Holloway
Saloon Keeper
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's also a maven "build" goal that's used by a lot of the Jakarta projects. It bumps build numbers, supports both snapshot and release builds, and even ensures that everything's been checked into the source code repository. At its extreme, it will even build and deploy a project management site. Which is how most of the Jakarta sub-sites are constructed.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I didn't know it did build numbers, too. I thought it was the "release" plugin, though--I can't keep track of all those Maveny things.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Oh, I didn't know it did build numbers, too. I thought it was the "release" plugin, though--I can't keep track of all those Maveny things.

+1 :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic