aspose file tools
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 The Software Craftsman this week in the Agile 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: 31680

Is this what you are looking for?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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
Have you tried LearnNowOnline?
subject: Maven Snapshot Versions