What is the recommended approach to get org.apache.maven.repository.RepositorySystem in 3.8.6?

2022-09-26 Thread Christoph Läubrich
I'm currently writing a test for a component that requires org.apache.maven.repository.RepositorySystem the problem is that it seems the only implementation of this is LegacyRepositorySystem that is part of maven-compat (and thus I'd like to avoid adding that as a dependency) So I see two op

Re: What is the recommended approach to get org.apache.maven.repository.RepositorySystem in 3.8.6?

2022-09-26 Thread Tamás Cservenák
Howdy, you did not specify what is what you exactly look for but in general: definitely avoid maven-compat (maven2 support). Your best bet is to: - NOT support older Maven then 3.1, then you save yourself from aether/resolver package change (so no need for things like https://github.com/apach

Re: What is the recommended approach to get org.apache.maven.repository.RepositorySystem in 3.8.6?

2022-09-26 Thread Christoph Läubrich
THanks for the hints, in general I'm currently cleanup/refactor Tycho but still there are places where maven-compat seems required (and the tests is such a part sadly). Tycho requires maven-3.8.6 as a minimum and hopefully will move on to maven 3.9.x once it is released (and we got rid of the

Re: What is the recommended approach to get org.apache.maven.repository.RepositorySystem in 3.8.6?

2022-09-26 Thread Tamás Cservenák
Howdy, As I see your use case "in the particular case we \"simply\" resolve an artifact with its dependencies" is basically very much same as m-compiler-p does to get annotation processors. Hence, I did this just to see: https://github.com/apache/maven-compiler-plugin/pull/151 Hope it helps T On

Re: What is the recommended approach to get org.apache.maven.repository.RepositorySystem in 3.8.6?

2022-09-26 Thread Slawomir Jaranowski
Hi, Maybe it is time to deprecate org.apache.maven.repository.RepositorySystem We should document replacement for each method. pon., 26 wrz 2022 o 15:04 Tamás Cservenák napisał(a): > Howdy, > > As I see your use case "in the particular case we \"simply\" resolve an > artifact with its depend

Re: What is the recommended approach to get org.apache.maven.repository.RepositorySystem in 3.8.6?

2022-09-26 Thread Romain Manni-Bucau
Guess we can let it live the time we go to the new clean API of maven 4? Not sure it is worth doing any work in v3 since everything will be cleanly hosted in v4 so would impose 2 migrations if we do. Romain Manni-Bucau @rmannibucau | Blog

Re: What is the recommended approach to get org.apache.maven.repository.RepositorySystem in 3.8.6?

2022-09-26 Thread Sylwester Lachiewicz
Be careful with this class, see https://issues.apache.org/jira/browse/MNG-6642 pon., 26 wrz 2022, 18:11 użytkownik Slawomir Jaranowski < s.jaranow...@gmail.com> napisał: > Hi, > > Maybe it is time to deprecate org.apache.maven.repository.RepositorySystem > > We should document replacement for eac