Why do the trash folder of Nexus never empties?

╄→гoц情女王★ 提交于 2020-01-14 07:37:28

问题


For my maven enterprise repository, I use Sonatype Nexus, deployed as a Tomcat6 webapp.

I've configured default snapshots cleanup task. Unfortunatly, each week (or each pair of week, don't know exactly), that machine reaches 100% disk occupation, and I have to go in the /usr/share/tocmat6/sonatype-work/nexus/storage/snapshots/.nexus/trash folder to perform a rm -rf.

This is incredibly stupid ! And I'm quite sure it's my own stupid. So, what can I do to have the trash empty task really clean up that folder ?


回答1:


You need to configure a task to clean the trash

  • Go to nexus
  • log in as an administrator
  • Go to Adminitration -> Scheduled tasks
  • Add a task of type Empty trash

These instructions should work on nexus 1.8 and above. They might work on previous versions, but I don't have any installed.




回答2:


Turns out default configuration of "Empty trash" is to delete items older than 180 days ! This is clearly not suitable for a continuous integration server ! I changed that value to 5 days.



来源:https://stackoverflow.com/questions/12976774/why-do-the-trash-folder-of-nexus-never-empties

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!