On Mon, May 4, 2020 at 10:25 AM Mickael Istria <[email protected]> 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 Eclipse m2e and LemMinX-Maven, with some > success. DefaultRepositorySystemSessionFactory is itself an internal class, so that doesn't really resolve the issue. I've looked into the code of the projects cited in this thread, and so far they all seem to be relying on internal classes including MavenRepositorySystemUtils. They just hide it a couple of levels deeper. Right now Aether really don't seem to have a published (i.e. non-internal) API for loading a Maven repository. This suggests we might want to externalize, document, and commit to supporting the MavenRepositorySystemUtils class. Either that or provide some alternate mechanism for bootstrapping aether. -- Elliotte Rusty Harold [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
