Re: APIs for reading Maven repositories

2020-09-17 Thread Elliotte Rusty Harold
On Mon, May 4, 2020 at 10:25 AM Mickael Istria wrote: > > > If you need a RepositorySystemSession, best seems to be creatin a > MavenExecutionRequest, and then > `container.lookup(DefaultRepositorySystemSessionFactory.class).newRepositorySession(mavenRequest)`. > > This is what's used both by Ecl

Re: APIs for reading Maven repositories

2020-05-04 Thread Manfred Moser
Elliotte Rusty Harold wrote on 2020-05-04 07:02 (GMT -07:00): > 2. Is it possible to boostrap the resolver without using the internal > class MavenRepositorySystemUtils? > > https://issues.apache.org/jira/browse/MNG-6579 > I am using the resolver in my Maven Repository Provisioner and boots

Re: APIs for reading Maven repositories

2020-05-04 Thread Mickael Istria
On Mon, May 4, 2020 at 4:10 PM Elliotte Rusty Harold wrote: > 1. Is there an API somewhere for locating the local maven repository > that is often but not always stored in ~/.m2/repository? > I didn't find a good code for that. It looks like MavenCli and related classes are doing most of the job

APIs for reading Maven repositories

2020-05-04 Thread Elliotte Rusty Harold
I'm working on code that is **not** in a Maven plugin (e.g. Gradle plugin or other tools) but that needs to interact with the Maven repository system. Typically this is what the maven artifact resolver is for: https://maven.apache.org/resolver/index.html Mostly I've figured out how to use this. H