Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Snapshot Versions

 
Niall Loughnane
Ranch Hand
Posts: 209
  • 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: 34372
345
Eclipse IDE Java VI Editor
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • 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