Q:

Update listener on maven repository managed by Nexus

We are using maven as build technology and nexus as repository manager. I would like to know what was just uploaded to repository and to do some actions after it's repository update is finished. How I can do this?
Write listener which is verifying file system and compare the difference? How I could then know the state if artifact is deployed and the uploading process is finished? Perhaps you know some other solutions?
All repositories I need resides on Linux.
Update, guys, I just saw that there are nexus plugins that can be used for this. Do you know how to get update event within nexus plugin?
Thank you.

A:

Nexus supports a whole number of different integrations that offer you different options. They are

script against its REST API to access Nexus functionality from outside
listen to the RSS feed events from outside
write a plugin to work within Nexus and expands its functionality and/or user interface

In your case you can just subscribe to the system feed that contains the events you are interested in. In your case it might be "New Deployed Artifacts in All Repositories" available e.g. at http://yournexusserver:8081/nexus/service/local/feeds/recentlyDeployedArtifacts
Just monitor that feed with some script or other integration system that can poll it regularly and then perform whatever action you want.
If you want you can of course turn it around and write a Nexus plugin that listens to the events via internal API's and then triggers an action from Nexus. Choose whatever works easier for you in terms of implementation.. 
Check out the system feeds via Repositories - System Feeds

