Problem about snapshots metadata.xml


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