jira-importer commented on issue #559: URL: https://github.com/apache/maven-invoker-plugin/issues/559#issuecomment-2957801773
**[Tuomas Kiviaho](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tuomas_kiviaho)** commented Here are the metadatas to give a clearer picture of the local repo state just prior to invoker:integration-test goal execution. It seems that invoker:install goal generates (partial???) `maven-metadata-local.xml` that I may have mistaken as the actual local repository while debugging since they both point to the same location in my settings. And for sure that one is missing references to pom and other artifacts. But still it's the weird aftermath that `DefaultVersionResolver::resolveVersion` applies when the metadataresults have been already merged together successfully. It can't be just an optimization to see if the metadata of the local repo is newer than the remote since that's done already so have no idea what the code snippet in my first comment is all about. This logic is ultimately causing the failure and invoker is just a contributor to the cause. As a work-a-round I need to start finding an alternative/patch for invoker:install for the time being, but it would be nice to get clarification on what is going on with the version resolver post processing the snapshot classifiers repo in such way. ```xml <metadata> <groupId>mygroupid</groupId> <artifactId>myartifactid</artifactId> <version>x.y.z-SNAPSHOT</version> <versioning> <snapshot> <localCopy>true</localCopy> </snapshot> <lastUpdated>20211117135742</lastUpdated> </versioning> </metadata> ``` ```xml <?xml version="1.0" encoding="UTF-8"?> <metadata modelVersion="1.1.0"> <groupId>mygroupid</groupId> <artifactId>myartifactid</artifactId> <version>x.y.z-SNAPSHOT</version> <versioning> <snapshot> <timestamp>20211112.112753</timestamp> <buildNumber>2</buildNumber> </snapshot> <lastUpdated>20211112112753</lastUpdated> <snapshotVersions> <snapshotVersion> <extension>jar</extension> <value>x.y.z-20211112.112753-2</value> <updated>20211112112753</updated> </snapshotVersion> <snapshotVersion> <extension>pom</extension> <value>x.y.z-20211112.112753-2</value> <updated>20211112112753</updated> </snapshotVersion> <snapshotVersion> <classifier>myclassifier</classifier> <extension>jar</extension> <value>x.y.z-20211112.112753-2</value> <updated>20211112112753</updated> </snapshotVersion> <snapshotVersion> <classifier>sources</classifier> <extension>jar</extension> <value>x.y.z-20211112.112753-2</value> <updated>20211112112753</updated> </snapshotVersion> </snapshotVersions> </versioning> </metadata> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org