[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-114) Support resolution of versions from a specific artifact

Michal Matloka (JIRA) jira-events at lists.jboss.org
Fri Mar 1 17:36:56 EST 2013


    [ https://issues.jboss.org/browse/SHRINKRES-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757945#comment-12757945 ] 

Michal Matloka edited comment on SHRINKRES-114 at 3/1/13 5:36 PM:
------------------------------------------------------------------

Version range requests returns versions info data, not dependencies. Forge team indicates that they would like to get those versions info to get further only e.g. highest version, without transferring all versions files. This probaby requieres some API additions e.g.
* addition of resolveVersions method in ResolveStage
* resolveVersions would return e.g. wrapped VersionRangeResult object providing getHighest etc methods converting aether Version e.g. to MavenCoordinate

Example:
{code}
final MavenCoordinate mavenCoordinate = Maven.resolver().resolveVersions("groupId:artifactId:[1.0,2.0)").getHighest();
{code}
It is not a perfect solution yet, because then SWR has to be used second time to get real files.
{code}
Maven.resolver().resolve(mavenCoordinate ).with....
{code}

But this also brings problem, that resolveVersions shouldnt be executed after resolve...
                
      was (Author: mmatloka):
    Version range requests returns versions info data, not dependencies. Forge team indicates that they would like to get those versions info to get further only e.g. highest version, without transferring all versions files. This probaby requieres some API additions e.g.
* addition of resolveVersions method in ResolveStage
* resolveVersions would return e.g. wrapped VersionRangeResult object providing getHighest etc methods converting aether Version e.g. to MavenCoordinate

Example:
{code}
final MavenCoordinate mavenCoordinate = Maven.resolver().resolveVersions("groupId:artifactId:[1.0,2.0)").getHighest();
{code}
It is not a perfect solution yet, because then SWR has to be used second time to get real files.
{code}
Maven.resolver().resolve(mavenCoordinate ).with....
{code}
                  
> Support resolution of versions from a specific artifact
> -------------------------------------------------------
>
>                 Key: SHRINKRES-114
>                 URL: https://issues.jboss.org/browse/SHRINKRES-114
>             Project: ShrinkWrap Resolvers
>          Issue Type: Feature Request
>          Components: impl-maven
>    Affects Versions: 2.0.0-beta-2
>            Reporter: George Gastaldi
>            Assignee: Michal Matloka
>
> There are cases where a version of a specific artifact is unknown during test execution.
> Aether supports version ranging: 
> {code}org.sonatype.aether.RepositorySystem.resolveVersionRange(RepositorySystemSession, VersionRangeRequest){code}
> It would be nice to provide an API in ShrinkWrap Resolver to:
> - Resolve the available versions from a specific given range
> - From that range, the possibility to retrieve the lowest and the highest version
> - Reuse this information to resolve artifacts using the already existing ShrinkWrap Resolver APIs

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list