# Detecting repo updates

**URL:** <https://community.sonatype.com/t/detecting-repo-updates/1510>\
**Category:** Sonatype Nexus Repository\
**Created:** [March 27, 2019, 11:58am UTC](https://community.sonatype.com/t/detecting-repo-updates/1510 "2019-03-27T11:58:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.judt](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@h.judt](https://community.sonatype.com/u/h.judt)\
**Post date:** [March 27, 2019, 11:58am UTC](https://community.sonatype.com/t/detecting-repo-updates/1510/1 "2019-03-27T11:58:08Z")

</div>

Is there a way (REST call) to check a Nexus repository for updates (e.g. new pom and war files)? That is, some call to list changes since the last time (which I need to remember of course) that I checked? If it returns what has changed that would be great, but simply true or false is good enough too.

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [March 27, 2019, 2:37pm UTC](https://community.sonatype.com/t/detecting-repo-updates/1510/2 "2019-03-27T14:37:05Z")

</div>

There are ways to list the versions for a particular GA, but they won’t tell you what changed since the last time you checked unless you record it somewhere. The simplest thing to do is to retreive the maven-metadata.xml file from the artifact folder. The REST API can also be used.

But you might want to take a look at webhooks:

[https://help.sonatype.com/display/NXRM3/Webhooks](https://help.sonatype.com/display/NXRM3/Webhooks)

This would let an external listener know when changes have been made in repository.

---

<div class="post-metadata">

**Author:** ![h.judt](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@h.judt](https://community.sonatype.com/u/h.judt)\
**Post date:** [March 28, 2019, 2:16pm UTC](https://community.sonatype.com/t/detecting-repo-updates/1510/3 "2019-03-28T14:16:38Z")

</div>

Thank you for your reply and the hint to webhooks. maven-metadata.xml from the artifact folder will not help because I need to know if any artifact has changed; that is, if there have been changes anywhere in the repository.
