When running a P2 Repository task, the plugin creates a lot of p2-agent-* folder in the temp directory of Nexus. These folders are marked for deletion on exit.
Therefore, when nexus is shutting down, all these folders are deleted. But, in some case (when many plugin calls have been done), it takes too long to delete them and the Tanuki Wrapper kill the process before the cleanup was perfomed.
Is there a way to clean all these temporary folders before the system exits ? Or maybe these P2 agent metadata can be reused accross plugin calls ?
Nexus OSS: 2.4.0-09
P2 Bridge Plugin: 2.1
P2 Repository Plugin: 2.3.1