Re: directed acyclic graph of the build

2021-04-13 Thread Tamás Cservenák
Howdy,

you can see the "build plan" which is not DAG, but the ordered list out of
DAG (sorted nodes in order DAG requires), just use `-X` on the command line.
But again, this list does not reflect in reality "how the build is gonna
execute"...

As regarding the actual "build order", it depends on Builder implementation:
See here:
https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/Builder.java
and package (with ST and MT Builders in subpackages)
https://github.com/apache/maven/tree/master/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder

Also, there are "alternative" Builders like this one
https://github.com/takari/takari-smart-builder/blob/master/src/main/java/io/takari/maven/builder/smart/SmartBuilder.java

You can get more explained here, but most you can get is by reading sources
above
http://takari.io/book/30-team-maven.html#takari-smart-builder

HTH
T




On Tue, Apr 13, 2021 at 6:58 PM Delany  wrote:

> Im interested in modules though, not dependencies, at least not initially.
> If I say Maven give me a dag of project A, I'd expect it to go through the
> list of modules and create a tree. That's what it's going to build. The
> question then is what order to build them.
> Obviously project A would be first. Then if a child project had a
> dependency on another, that would put it ahead in the build order, etc,
> etc. A picture would emerge, potentially showing me what projects are
> bottlenecking the build.
>
> I see ferstl was working on this:
> https://github.com/ferstl/depgraph-maven-plugin/issues/103
>
> Delany
>
> On Tue, 13 Apr 2021 at 17:36, Tibor Digana  wrote:
>
> > DAG of the POM.
> > I am using IntelliJ IDEA for such things but you can also use
> > maven-dependency-plugin which prints the dependencies in the console.
> >
> > On Tue, Apr 13, 2021 at 1:26 PM Delany 
> wrote:
> >
> > > Hi
> > >
> > > How can I get a DAG of the build?
> > > I want to see how projects are being scheduled in a multithreaded
> build.
> > >
> > > Thanks,
> > > Delany
> > >
> >
>


Re: directed acyclic graph of the build

2021-04-13 Thread Delany
Im interested in modules though, not dependencies, at least not initially.
If I say Maven give me a dag of project A, I'd expect it to go through the
list of modules and create a tree. That's what it's going to build. The
question then is what order to build them.
Obviously project A would be first. Then if a child project had a
dependency on another, that would put it ahead in the build order, etc,
etc. A picture would emerge, potentially showing me what projects are
bottlenecking the build.

I see ferstl was working on this:
https://github.com/ferstl/depgraph-maven-plugin/issues/103

Delany

On Tue, 13 Apr 2021 at 17:36, Tibor Digana  wrote:

> DAG of the POM.
> I am using IntelliJ IDEA for such things but you can also use
> maven-dependency-plugin which prints the dependencies in the console.
>
> On Tue, Apr 13, 2021 at 1:26 PM Delany  wrote:
>
> > Hi
> >
> > How can I get a DAG of the build?
> > I want to see how projects are being scheduled in a multithreaded build.
> >
> > Thanks,
> > Delany
> >
>


Re: directed acyclic graph of the build

2021-04-13 Thread Tibor Digana
DAG of the POM.
I am using IntelliJ IDEA for such things but you can also use
maven-dependency-plugin which prints the dependencies in the console.

On Tue, Apr 13, 2021 at 1:26 PM Delany  wrote:

> Hi
>
> How can I get a DAG of the build?
> I want to see how projects are being scheduled in a multithreaded build.
>
> Thanks,
> Delany
>


directed acyclic graph of the build

2021-04-13 Thread Delany
Hi

How can I get a DAG of the build?
I want to see how projects are being scheduled in a multithreaded build.

Thanks,
Delany