# Nexus deletes maven-metadata.xml

**URL:** <https://community.sonatype.com/t/nexus-deletes-maven-metadata-xml/11848>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository\
**Created:** [January 4, 2024, 9:21am UTC](https://community.sonatype.com/t/nexus-deletes-maven-metadata-xml/11848 "2024-01-04T09:21:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![max.schaefer](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@max.schaefer](https://community.sonatype.com/u/max.schaefer)\
**Post date:** [January 4, 2024, 9:21am UTC](https://community.sonatype.com/t/nexus-deletes-maven-metadata-xml/11848/1 "2024-01-04T09:21:33Z")

</div>

Hello,  
in my Nexus instance’s (Sonatype Nexus Repository OSS 3.63.0-01) maven repository I’ve got these kind of artifacts:  
1.  
`
<groupId>a</groupId>
<artifactId>b</artifactId>
`  
2.  
`
<groupId>a.b</groupId>
<artifactId>c</artifactId>
`  
When I delete via the UI or REST a version of 2. and afterwards upload a new version of 2. then Nexus deletes the maven-metadata.xml of 1. (a/b/maven-metadata.xml)  
It does not automatically rebuild the maven-metadata.xml of 1.  
I need to run a task of type Repair - Rebuild Maven repository metadata (maven-metadata.xml) to get it back.  
Is that an expected behavior?

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [January 11, 2024, 8:35pm UTC](https://community.sonatype.com/t/nexus-deletes-maven-metadata-xml/11848/2 "2024-01-11T20:35:44Z")

</div>

This seems like a bug to me. Your projects are a little unusual and would result in different types of metadata at the same directory level. If you wouldn’t mind reporting it in: [Issues · sonatype/nexus-public · GitHub](https://github.com/sonatype/nexus-public/issues)

---

<div class="post-metadata">

**Author:** ![max.schaefer](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@max.schaefer](https://community.sonatype.com/u/max.schaefer)\
**Post date:** [January 12, 2024, 10:16am UTC](https://community.sonatype.com/t/nexus-deletes-maven-metadata-xml/11848/3 "2024-01-12T10:16:18Z")

</div>

Thanks for your response. I’ve submitted [Nexus deletes maven-metadata.xml · Issue #314 · sonatype/nexus-public · GitHub](https://github.com/sonatype/nexus-public/issues/314)
