• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!