Hello, we do builds up against the latest snapshot in our dev environment. After switching our builds from maven 3.8.5 to 3.9.7 we find that the maven-metadata.xml generated for our snapshot libraries is incorrect, resulting in a build up against the **previous** snapshot. Switching back to 3.8.5 fixes the issue.
The incorrect metadata is generated when we "mvn deploy" our library. I took a look at the release logs for 3.9.8 and 3.9.9 and could not see any fixed issues which seemed to resemble this problem. We will try out 3.9.9 once we get it installed on our build system. We are using an updatePolicy of always on our snapshot repo. <repository> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> <id>our-snapshot</id> <name>our-snapshots</name> <url>https://someurlhere</url> </repository> Example incorrect file below. The *jar snapshotVersion *is one build number back, it should be 516 <?xml version="1.0" encoding="UTF-8"?> <metadata modelVersion="1.1.0"> <groupId>redacted</groupId> <artifactId>also-redacted</artifactId> <version>0.30.17-SNAPSHOT</version> <versioning> <snapshot> <timestamp>20241010.231422</timestamp> <buildNumber>516</buildNumber> </snapshot> <lastUpdated>20241010231529</lastUpdated> <snapshotVersions> <snapshotVersion> <classifier>sources</classifier> <extension>jar</extension> <value>0.30.17-20241010.231422-516</value> <updated>20241010231422</updated> </snapshotVersion> <snapshotVersion> <extension>jar</extension> <value>0.30.17-20241010.215322-515</value> <updated>20241010215322</updated> </snapshotVersion> <snapshotVersion> <extension>pom</extension> <value>0.30.17-20241010.231422-516</value> <updated>20241010231422</updated> </snapshotVersion> </snapshotVersions> </versioning> </metadata> Thanks!