
The "latest" field is only intended for plugin resolution, and is only set upon deployment of a maven-plugin artifact, both for Maven 2.x and 3.x regardless whether a release or snapshot gets deployed.Īlso, Maven will update these fields with whatever version it is currently deploying, so "latest" and "release" will not necessarily correspond to the highest version number. Maven 3.x deploys a non-snapshot artifact Maven 2.x deploys using -DupdateReleaseInfo=trueĢ.

Maven will update the "release" field only during the following scenarios:ġ.

It downloads the file, updates it, and then redeploys it.

The maven-metadata.xml files are not updated by Nexus during deployment, they are updated by Maven.
