Get your own customer support community
 

What is a typical configuration of scheduled tasks ?

In the book, the chapter regarding scheduled task is really descriptive, but it missed typical sample of what it is good to do ?
Should we periodically clear caches of mirrored repositories ? How often it is typically good to evict useless items ? should reindexing and attribute rebuilt regularly ? Should snapshots be treated differently than release ?
It would be nice to have some suggestion for a typical repository, proxying the central repository and storing corporate poms in hosted repositories.

I do not really understand if clearing caches, reindexing, rebuilding of attribute are required task for properly proxy the maven repository and host our own project ?
 
sad I’m confused
Inappropriate?
1 person has this question

The company marked this question as answered.


  • Inappropriate?
    Alright, I'll take a stab at this by telling you what I have running on my own Nexus instance:

    1. I remove the trash every single night at around 2 AM (why 2 AM? Because I schedule other tasks which remove things before then)

    2. I evict unused proxied items from all repositories at Midnight. This isn't going to be a huge list, but if someone just dabbled in a dependency for a day, I certainly don't want to be keeping it around if they ended up moving to something else.

    Note: If you *really* want to maintain backwards compatibility and repeatable builds from now into the future, you may not want to evict unused, proxied items. Even though Central makes the commitment to keep everything around indefinitiely, it is nice to know that you can step back in your code and build against the old versions of libraries you depend upon. I run it, but that doesn't mean that you have to.

    3. I Download Indexes once every few days. Although I'm not exactly sure of the schedule, you should know that the index on Central only changes once a week.

    4. I remove snapshots from all hosted snapshot repos once a day and make sure to hang on to approximately 2 days worth of snapshots. I can do this because I have Hudson constantly building and deploying snapshots. If I didn't do this, I'd likely run out of space in a few days.

    Hope that helps.
     
    happy I’m happy
    Sprite_screen The company says this answers the question
User_default_medium