File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Snapshot Versions

 
Niall Loughnane
Ranch Hand
Posts: 208
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33674
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this what you are looking for?
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use the flag -DuniqueVersion=false in your deploy command. The SNAPSHOT key would then not get replaced with the build time stamp by maven.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic