pon., 21 lis 2022 o 06:41 Andrzej Jarmoniuk <[email protected]>
napisał(a):

> Thank you. I did see those examples. The reason I'm asking this is that,
> e.g. the VersionRequest class, which is used as an argument for
> VersionResolver.resolveVersion, takes org.eclipse.aether.artifact.Artifact
> and a list of org.eclipse.aether.repository.RemoteRepository (which a
> child of org.eclipse.aether.repository.ArtifactRepository) as argumens.
> These, while similar, do require some adapting. I was asking if there
> already exist some utilities to map those. If not, I'll simply do it on my
> own :)
>
>
There is org.apache.maven.RepositoryUtils from maven-core


> Best regards
> Andrzej
>
> Op zondag 20 november 2022 om 22:26:39 UTC+1 schreef [email protected]:
>
>> niedz., 20 lis 2022 o 17:28 Andrzej Jarmoniuk <[email protected]>
>> napisał(a):
>>
>>> Thanks. I'm looking into that. I see some adapting between
>>> org.eclipse.aether and org.maven is needed. Do you know of any readily
>>> available adapters?
>>>
>>>
>> We only use one method retrieveAvailableVersions from
>> ArtifactMetadataSource.
>>
>> There is example how to find all versions:
>>
>> 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
>>
>> There are no adapters - we can use the resolver API directly, it has the
>> org.eclipse.aether package for historical reasons.
>>
>> https://cwiki.apache.org/confluence/display/MAVEN/Maven+Ecosystem+Cleanup#MavenEcosystemCleanup-resolverMavenResolver(akaMavenArtifactResolver)
>>
>>
>>
>>> Op zondag 20 november 2022 om 09:19:57 UTC+1 schreef [email protected]
>>> :
>>>
>>>> Hi,
>>>>
>>>> Please loook as
>>>> https://lists.apache.org/thread/pd0onvrr0x4d5ctcphfjmscb5obm8or4
>>>>
>>>>
>>>>
>>>>
>>>> sob., 19 lis 2022 o 22:12 Andrzej Jarmoniuk <[email protected]>
>>>> napisał(a):
>>>>
>>>>> Hi all,
>>>>>
>>>>> I'd like to move away from using maven-compat for
>>>>> versions-maven-plugin, and especially from using ArtifactMetadataSource.
>>>>> I've come across this guide,
>>>>>
>>>>>
>>>>> https://cwiki.apache.org/confluence/display/MAVEN/Plugin+migration+to+Maven3+dependencies
>>>>>
>>>>> but it seems to be unclear what the new API might be. Is it 
>>>>> RepositoryMetadataManager,
>>>>> which is used internally by ArtifactMetadataSource, or is the target API
>>>>> going to be Maven Resolver (which has been mentioned by in the guide I
>>>>> linked to)?
>>>>>
>>>>> Best regards
>>>>> Andrzej
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "mojohaus-dev" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/mojohaus-dev/d1f48926-e0a2-40cb-9676-6de004ec8631n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/mojohaus-dev/d1f48926-e0a2-40cb-9676-6de004ec8631n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> Sławomir Jaranowski
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "mojohaus-dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/mojohaus-dev/7192638b-2252-4f2d-ac0e-d00d09c5f67cn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/mojohaus-dev/7192638b-2252-4f2d-ac0e-d00d09c5f67cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Sławomir Jaranowski
>>
> --
> You received this message because you are subscribed to the Google Groups
> "mojohaus-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mojohaus-dev/76c2f571-eb27-4a6f-b5ab-5b0f6c7e1dbfn%40googlegroups.com
> <https://groups.google.com/d/msgid/mojohaus-dev/76c2f571-eb27-4a6f-b5ab-5b0f6c7e1dbfn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Sławomir Jaranowski

-- 
You received this message because you are subscribed to the Google Groups 
"mojohaus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojohaus-dev/CAGjJkv1NxFid7GguaO%3D6Re-pPgdGNiZEpVemy_br7o6OA3s9Wg%40mail.gmail.com.

Reply via email to