Always look for demo snippets, for example this one: https://github.com/apache/maven-resolver/blob/master/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/FindAvailableVersions.java
T On Sun, Aug 21, 2022, 22:11 Konrad Windszus <[email protected]> wrote: > I think you need to use MetadataResolver (similar to what is done in > https://github.com/apache/maven/blob/a53a1aa232bc383baf055d884a7c66319d10d404/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java#L140) > although > https://github.com/apache/maven-resolver/blob/master/maven-resolver-impl/src/main/java/org/eclipse/aether/impl/MetadataResolver.java > seems to be SPI, while the more stable API is probably > https://github.com/apache/maven-resolver/blob/0391feec5fb7de97f78621194efb863ab058ac51/maven-resolver-api/src/main/java/org/eclipse/aether/RepositorySystem.java#L191 > . > > Hope this helps, > Konrad > On 2022/08/21 11:08:35 Slawomir Jaranowski wrote: > > Hi, > > > > Tamás, can you provide the full class name ... > > > > I found it: > > > https://maven.apache.org/resolver/apidocs/org/eclipse/aether/impl/VersionResolver.html > > but it is not what I need ... > > > > I need to discover all available versions of artifacts. > > > > > > > > niedz., 21 sie 2022 o 00:49 Tamás Cservenák <[email protected]> > > napisał(a): > > > > > Howdy, > > > > > > VersionResolver component? > > > > > > HTH > > > T > > > > > > On Fri, Aug 19, 2022 at 9:20 PM Slawomir Jaranowski < > > > [email protected]> > > > wrote: > > > > > > > Hi > > > > > > > > Interface ArtifactMetadataSource [1] is deprecated - what is > > > > replacement for it? > > > > especially for method retrieveAvailableVersions > > > > > > > > > > > > [1] > > > > > > > > > > > > https://maven.apache.org/ref/3.8.6/apidocs/org/apache/maven/artifact/metadata/ArtifactMetadataSource.html > > > > > > > > -- > > > > Sławomir Jaranowski > > > > > > > > > > > > > -- > > Sławomir Jaranowski > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
