Re: Integrating maven with other tooling

2016-06-03 Thread Igor Fedorenko
m2e uses WorkspaceReader to implement this http://git.eclipse.org/c/m2e/org.eclipse.m2e.workspace.git/tree/org.eclipse.m2e.workspace.cli/src/main/java/org/eclipse/m2e/workspace/internal/Maven31WorkspaceReader.java -- Regards, Igor On Fri, Jun 3, 2016, at 02:17 AM, James Roper wrote: > On 3 Ju

Re: Integrating maven with other tooling

2016-06-02 Thread James Roper
On 3 June 2016 at 13:36, Igor Fedorenko wrote: > On Mon, May 30, 2016, at 11:34 PM, James Roper wrote: > > > > One question that I'm trying to solve now, when resolving dependencies, > > if > > you want to do so without actually building the project it seems that you > > would probably have to cr

Re: Integrating maven with other tooling

2016-06-02 Thread Igor Fedorenko
On Mon, May 30, 2016, at 11:34 PM, James Roper wrote: > > One question that I'm trying to solve now, when resolving dependencies, > if > you want to do so without actually building the project it seems that you > would probably have to create your own WorkspaceReader implementation > that > will r

Re: Integrating maven with other tooling

2016-05-30 Thread James Roper
On 31 May 2016 at 12:22, Igor Fedorenko wrote: > There is no good/sane Maven embedding API. You really need to > reimplement relevant parts of MavenCli and DefaultMaven in your code. > You can check how we do this in m2e [1], although embedding Maven in > long-running OSGi application certainly a

Re: Integrating maven with other tooling

2016-05-30 Thread Igor Fedorenko
There is no good/sane Maven embedding API. You really need to reimplement relevant parts of MavenCli and DefaultMaven in your code. You can check how we do this in m2e [1], although embedding Maven in long-running OSGi application certainly adds its own lever of complexity. [1] http://git.eclipse.

Re: Integrating maven with other tooling

2016-05-30 Thread James Roper
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

Re: Integrating maven with other tooling

2016-05-30 Thread Michael Osipov
> Hi all, > > I'm looking to write some tooling that integrates with maven by > programatically interrogating the build to get, for example, a list of > projects, their transitive dependencies, etc. What I don't want to do is > reimplement maven - I don't want to parse the pom file myself and res

Integrating maven with other tooling

2016-05-29 Thread James Roper
Hi all, I'm looking to write some tooling that integrates with maven by programatically interrogating the build to get, for example, a list of projects, their transitive dependencies, etc. What I don't want to do is reimplement maven - I don't want to parse the pom file myself and resolve depende