MavenMetadataSource.retrieveAvailableVersions(...) returns garbage with a legacy repository -------------------------------------------------------------------------------------------
Key: MNG-3793 URL: http://jira.codehaus.org/browse/MNG-3793 Project: Maven 2 Issue Type: Bug Components: Artifacts and Repositories Affects Versions: 2.0.9 Reporter: Vincent Fiack I have a legacy repository containing lots of jars. On the repository, I have these versions for an artifact : repository_maven$ ls crih_asi/jars/quartz-crih-*jar crih_asi/jars/quartz-crih-1.04.jar crih_asi/jars/quartz-crih-1.06.jar crih_asi/jars/quartz-crih-1.09.jar crih_asi/jars/quartz-crih-1.05.jar crih_asi/jars/quartz-crih-1.07.jar crih_asi/jars/quartz-crih-1.10.jar With the goal versions:display-dependency-updates, I have this : [INFO] The following dependency updates are available: [INFO] crih_asi:quartz-crih ................................... 1.10 -> 3.21 Running this goal in debug shows this : [DEBUG] Checking crih_asi:quartz-crih for updates newer than 1.10 [DEBUG] crih_asi:quartz-crih:jar:1.10:provided has versions [1.00, 1.55, 1.70, 1.56, 1.04, 1.01, 1.52, 1.54, 1.02, 2 .69, 3.21, 1.10, 1.53, 1.05, 1.06, 1.07] The versions are correct for others artifacts, but not for this one. The list is obtained with this code : versions = artifactMetadataSource.retrieveAvailableVersions( artifact, localRepository, remoteRepositories ); The implementation for artifactMetadataSource is org.apache.maven.project.artifact.MavenMetadataSource -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira