On 30 May 2016 at 17:39, Michael Osipov <1983-01...@gmx.net> wrote: > > I think, you are looking for Maven Embedder. >
No, really, I'm not. I have been head deep in the maven embedder source code for a day now, and it does not do what you think it does. org.apache.maven.cli.MavenCli, the class I mentioned above, is the primary interface that maven embedder provides. This is the single public method it offers: public int doMain( CliRequest cliRequest ) This is the only method I can find in maven embedder to integrate with maven, and as you can see, it only returns int, there is no way to ask for a list of projects for example. As far as I can see, Maven embedder is only for programmatically issuing execution requests, not for interrogating the build. In order to interrogate the build, I have had to copy large swaths of code from maven embedder. Is there a better way? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > -- *James Roper* *Software Engineer* Lightbend <https://www.lightbend.com/> – Build reactive apps! Twitter: @jroper <https://twitter.com/jroper>