You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2007/04/06 19:26:02 UTC

[jira] Created: (MNG-2940) Add a method to the embedder to list available versions of an artifact

Add a method to the embedder to list available versions of an artifact
----------------------------------------------------------------------

                 Key: MNG-2940
                 URL: http://jira.codehaus.org/browse/MNG-2940
             Project: Maven 2
          Issue Type: New Feature
          Components: Embedding
    Affects Versions: 2.1-alpha-1
            Reporter: Carlos Sanchez
         Attachments: patch.txt

I've added a method following the style of the resolve method already present

public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException


-- 
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] Commented: (MNG-2940) Add a method to the embedder to list available versions of an artifact

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99937 ] 

Jason van Zyl commented on MNG-2940:
------------------------------------

What do you mean you don't know? A version of an artifact should only be available in one production repository. 

So what if you have it installed locally? What valid use case do you have for pulling in SNAPSHOTs or artifacts that have not been deployed? So give me the concrete use case because I can't see either of our cases being useful or necessary. Is this for some sort of development process. The APIs being exposed in the wild I want to be extremely careful about.

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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-2940) Add a method to the embedder to list available versions of an artifact

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

Brett Porter updated MNG-2940:
------------------------------

    Fix Version/s:     (was: 3.x)

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 3.0
>            Reporter: Carlos Sanchez
>            Assignee: Carlos Sanchez
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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-2940) Add a method to the embedder to list available versions of an artifact

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

Brett Porter updated MNG-2940:
------------------------------

    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   3.x

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 3.0
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: 3.x
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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] Commented: (MNG-2940) Add a method to the embedder to list available versions of an artifact

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99940 ] 

Carlos Sanchez commented on MNG-2940:
-------------------------------------

Buckminster needs a way to query the available versions in the repository given a groupId and artifactId and get a list of versions for their resolution mechanism. 
It needs to be consistent with the way Maven does it for version ranges, that's why needs to query the metadata xml.

If you are using a pom with two repositories you don' t know in which one is the dependency.


> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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-2940) Add a method to the embedder to list available versions of an artifact

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

Carlos Sanchez updated MNG-2940:
--------------------------------

    Attachment: patch.txt

Changed name and encapsulate exception

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1-alpha-1
>            Reporter: Carlos Sanchez
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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] Commented: (MNG-2940) Add a method to the embedder to list available versions of an artifact

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99738 ] 

Carlos Sanchez commented on MNG-2940:
-------------------------------------

It encapsulates ArtifactMetadataSource.retrieveAvailableVersions and uses the same signature



> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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] Commented: (MNG-2940) Add a method to the embedder to list available versions of an artifact

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99740 ] 

Jason van Zyl commented on MNG-2940:
------------------------------------

So what? It's wrong. Who cares what the existing signature is? The question is whether it makes any sense is what I'm asking you. In that it makes no sense to have multiple repositories, or specify the local repository when all the user wants is the set of versions.

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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-2940) Add a method to the embedder to list available versions of an artifact

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

Jason van Zyl updated MNG-2940:
-------------------------------

    Affects Version/s:     (was: 2.1-alpha-1)
                       2.1.x

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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-2940) Add a method to the embedder to list available versions of an artifact

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

Carlos Sanchez closed MNG-2940.
-------------------------------

      Assignee: Carlos Sanchez  (was: Jason van Zyl)
    Resolution: Won't Fix

probably not needed anymore

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 3.0
>            Reporter: Carlos Sanchez
>            Assignee: Carlos Sanchez
>             Fix For: 3.x
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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] Commented: (MNG-2940) Add a method to the embedder to list available versions of an artifact

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99719 ] 

Jason van Zyl commented on MNG-2940:
------------------------------------

I reviewed this and 

1) Why multiple remote repositories? An artifact should only be available from one repository
2) Why do you have the local repository? You want to full set of versions available in the wild yes? Or do you want to distinguish between local and remote?

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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] Commented: (MNG-2940) Add a method to the embedder to list available versions of an artifact

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158506#action_158506 ] 

Brett Porter commented on MNG-2940:
-----------------------------------

Carlos, is this still needed?

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 3.0
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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-2940) Add a method to the embedder to list available versions of an artifact

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

Brett Porter updated MNG-2940:
------------------------------

    Patch Submitted: [Yes]

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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] Commented: (MNG-2940) Add a method to the embedder to list available versions of an artifact

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99929 ] 

Carlos Sanchez commented on MNG-2940:
-------------------------------------

> 1) Why multiple remote repositories? An artifact should only be available from one repository

because you DON' T know in which one it is

> 2) Why do you have the local repository? You want to full set of versions available in the wild yes? Or do you want to distinguish between local and remote?

because you may have it already installed locally

> Add a method to the embedder to list available versions of an artifact
> ----------------------------------------------------------------------
>
>                 Key: MNG-2940
>                 URL: http://jira.codehaus.org/browse/MNG-2940
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Embedding
>    Affects Versions: 2.1.x
>            Reporter: Carlos Sanchez
>            Assignee: Jason van Zyl
>             Fix For: Reviewed Pending Version Assignment
>
>         Attachments: patch.txt, patch.txt
>
>
> I've added a method following the style of the resolve method already present
> public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException

-- 
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