Best way to handle old snapshots in local repository?

前端 未结 5 948
萌比男神i
萌比男神i 2021-02-19 06:35

We have a Nexus local repository manager which handles all our internal projects (as well as mirroring outside repositories). For our internal projects, we only keep the most

5条回答
  •  别那么骄傲
    2021-02-19 07:34

    First if you are using jenkins to build the best practice to have clean builds which means to use a local repository per build and not the global of the server. Furthermore it sounds that you don't use the release plugin to release your artifacts which automatically checks if a pom contains SNAPSHOTs and would fail if there are some. Furthermore it's possible to clean up the local repository via the maven-dependency-plugin. Based on my experience i have simply configured a task which deletes SNAPSHOTs which are older than a month...

提交回复
热议问题