• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Maven 3 - Time Stamped Artifacts in Repository

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read that versions setting is no longer executed and is ignored in Maven 3 or later, as explained here: Non-unique Versions. And by design, Maven 3 or later will always produce time stamped SNAPSHOT versions.

When I build artifacts though, I have some artifacts that only produce the base SNAPSHOT version, even if I build it multiple times, there .

After building some artifacts, in my local repository there will be that base artifact-SNAPSHOT file that I built, and a few other time stamped versions of the same artifact. There is the base artifact: artifactID-4.0.1.0-SNAPSHOT.jar, and then there are others in the same directory with versions appended to them: e.g. artifact-4.0.1.0-SNAPSHOT-20160120.192041-37.jar.

I don't want the time stamp files built and put into my repository, as it only eats up disk space. I would like to figure out how to only produce the base 4.0.1.0-SNAPSHOT version and nothing else.

Other than writing a script to deleted these accumulating time stamped artifacts, Has anyone figure out a way to disable them completely so they are not created in Maven 3 or later?
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!