You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Fiack (JIRA)" <ji...@codehaus.org> on 2008/10/16 11:13:19 UTC

[jira] Created: (MNG-3793) MavenMetadataSource.retrieveAvailableVersions(...) returns garbage with a legacy repository

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

        

[jira] Updated: (MNG-3793) MavenMetadataSource.retrieveAvailableVersions(...) returns garbage with a legacy repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3793:
------------------------------

    Fix Version/s: 2.x

> 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
>             Fix For: 2.x
>
>
> 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

        

[jira] Closed: (MNG-3793) MavenMetadataSource.retrieveAvailableVersions(...) returns garbage with a legacy repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3793.
-----------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.x)

I think you might have also had another repository defined that had other elements, or a bogus maven-metadata.xml file?

If you can illustrate a sample project & repository that shows this, please let us know. Bear in mind that legacy repositories will not be supported in Maven 3.x, however.

> MavenMetadataSource.retrieveAvailableVersions(...) returns garbage with a legacy repository
> -------------------------------------------------------------------------------------------
>
>                 Key: MNG-3793
>                 URL: http://jira.codehaus.org/browse/MNG-3793
>             Project: Maven 2 & 3
>          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