ARTIFACTORY: How to overcome the maven-metadata.xml file not getting correctly updated with maven 3.9.x
In this Knowledge Base Article, we will be discussing the known issue in which, when Apache Maven Client is upgraded to the latest version of 3.9.x, deploying any maven snapshot with maven >= 3.9.0 (we tried 3.9.2) by executing mvn clean deploy against that repo produces correct maven metadata in the local maven repository but incorrect metadata in the Artifactory repository. All other artifacts are deployed correctly.
The above behavior only occurs if the Maven client version is 3.9 or greater, whereas for 3.8.x clients, the issue will not occur. Therefore, in order to overcome this behavior, we either have to use the old Maven client version or upgrade Artifactory to version 7.68.11 or later, as mentioned in the Artifactory release notes page.