You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christoph Läubrich (Jira)" <ji...@apache.org> on 2022/02/23 13:15:00 UTC

[jira] [Comment Edited] (MNG-7421) DefaultVersionRangeResolver do not query the custom repository

    [ https://issues.apache.org/jira/browse/MNG-7421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496744#comment-17496744 ] 

Christoph Läubrich edited comment on MNG-7421 at 2/23/22, 1:14 PM:
-------------------------------------------------------------------

The [BND baseline plugin|https://github.com/bndtools/bnd/blob/master/maven/bnd-baseline-maven-plugin/README.md] call uses the Repository system to query for a version range, see https://github.com/bndtools/bnd/blob/master/maven/bnd-baseline-maven-plugin/src/main/java/aQute/bnd/maven/baseline/plugin/BaselineMojo.java#L220-L222

While my repository is included (they seem to be converted from maven->aether) then my repository implementation is not queried anymore for versions/artifacts.... I only see in the debugger that it queries for the metadata.xml but as P2 does not have such a thing ... SO I wonder what is a custom repository layout good for if it is actually never used?


was (Author: laeubi):
The [BND baseline plugin|https://github.com/bndtools/bnd/blob/master/maven/bnd-baseline-maven-plugin/README.md] call uses the Repository system to query for a version range, see https://github.com/bndtools/bnd/blob/master/maven/bnd-baseline-maven-plugin/src/main/java/aQute/bnd/maven/baseline/plugin/BaselineMojo.java#L220-L222

While my repository is included (they seem to be converted from maven->aether) then my repository implementation is not queried anymore for versions/artifacts....

> DefaultVersionRangeResolver do not query the custom repository
> --------------------------------------------------------------
>
>                 Key: MNG-7421
>                 URL: https://issues.apache.org/jira/browse/MNG-7421
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Christoph Läubrich
>            Priority: Major
>
> DefaultVersionRangeResolver.readVersions(RepositorySystemSession, RequestTrace, Metadata, ArtifactRepository, VersionRangeResult) only works if there is a metadata.xml
> If no metadata is found, it would be good if the org.apache.maven.artifact.repository.ArtifactRepository.findVersions(Artifact) is queried instead.
> The usecase for this is that tycho has a custom repository layout that do not has a metadata avaiable but provides a custom layout implementation instead.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)