At the moment, our Nexus tidies up SNAPSHOTs but always leaves the last SNAPSHOT even if a release version exists. The reasons for that are:
- To be able to checkout old revisions and build them (locally).
- To be able to run goals like
versions:use-releases
which can only replace existing SNAPSHOT versions with release versions.
What I don't like is the fact that SNAPSHOTs are taking hundreds of GB on the disk, although they are mostly useless.
In our Ant system that we retired some years ago, non-existent "SNAPSHOTs" were resolved against the release version. This solves above dilemma, but is not possible in Maven.
Is there another good solution?
Solutions for Nexus and Artifactory are both welcome.