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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Snapshot Versions" Watch "Maven Snapshot Versions" New topic
Author

Maven Snapshot Versions

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
Hi,

when i build a snapshot library for my project, the name of the jar and pom files are:
<projectName>-1.0.0-20130516.102259-1.jar
<projectName>-1.0.0-20130516.102259-1.pom

But how can i set the snapshot version to be:
<projectName>-1.0.0-SNAPSHOT.jar
<projectName>-1.0.0-SNAPSHOT.pom

rather than using timestamps?

Version of Maven is 3.0.4


Thanks,

Niall
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

Is this what you are looking for?


[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
OCJA(5/6) OCJP(6) OCJWCD(6)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven Snapshot Versions