# Problem about snapshots metadata.xml

**URL:** https://community.sonatype.com/t/problem-about-snapshots-metadata-xml/7982
**Category:** Sonatype Nexus Repository
**Tags:** help
**Created:** [January 5, 2022, 9:47am UTC](https://community.sonatype.com/t/problem-about-snapshots-metadata-xml/7982 "2022-01-05T09:47:31Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [January 5, 2022, 1:59pm UTC](https://community.sonatype.com/t/problem-about-snapshots-metadata-xml/7982/2 "2022-01-05T13:59:27Z")

</div>

```auto

my deploy command is like: mvn deploy:deploy-file -DgroupId=com.xxx.xxx -DartifactId=xxx-xxx -Dversion=1.8.0-20190620.090931-7 -Dfile=/root/base-client-1.8.0-20190620.090931-7.pom -Durl=http://localhost:8081/repository/maven_nexus2_snapshots/ -DrepositoryId=nexus-snapshots --settings /usr/local/maven3.6/conf/settings.xml

```

I’m afraid you’re misusing Maven, that’s not the right way to deploy a snapshot. You should let maven compute the next version number, so you should use “-Dversion=1.8.0-SNAPSHOT”. Maven will calculate the next timestamp and build number.

Rich

---

_[View the full topic](https://community.sonatype.com/t/problem-about-snapshots-metadata-xml/7982)._
