Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Snapshot Versions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Snapshot Versions" Watch "Maven Snapshot Versions" New topic

Maven Snapshot Versions

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208

when i build a snapshot library for my project, the name of the jar and pom files are:

But how can i set the snapshot version to be:

rather than using timestamps?

Version of Maven is 3.0.4


Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32628

Is this what you are looking for?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

use the flag -DuniqueVersion=false in your deploy command. The SNAPSHOT key would then not get replaced with the build time stamp by maven.

Muhammad Saif Asif Mirza
I agree. Here's the link:
subject: Maven Snapshot Versions
It's not a secret anymore!