Score:0

How to automatically delete old artifacts in an Apache Archiva

cn flag

We have an Apache Archiva server that we use as our main object repository for Maven. This server has been running for years already.

I have noticed that it still stores old version artifacts that are not in use anymore.

That means that I must do come manual cleanup of it to avoid having it consuming too much disk space.

I want to have the artifacts that have not been used in the last X months deleted automatically.

Will be nice to be able to exclude some specific packages from this purge. This will be for locally built packages that are not so easy to rebuild.

I have been looking for a solution for this in Archiva documentation, but I have found nothing. So, I'm considering to use a cron script launching find for that cleanup. But I wonder if there's any other and more elegant solution for this task.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.