Skip to content

[MNG-7646] Do not parse all projects in the reactor when building a subtree#963

Merged
gnodet merged 1 commit intoapache:masterfrom
gnodet:MNG-7646
Jan 26, 2023
Merged

[MNG-7646] Do not parse all projects in the reactor when building a subtree#963
gnodet merged 1 commit intoapache:masterfrom
gnodet:MNG-7646

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented Jan 17, 2023

Follow up to MNG-7629 and #954, the idea for this PR is to not parse all the reactor.

The idea of this PR is to parse all projects from the reactor only if the makeBehavior is set (i.e. -am and/or -amd option has been used), or if a project activation has been set (i.e. -pl, -r or -rf is used). Note that parents are always resolved from the file system, even if not included in the reactor.

The ITs only require a single modification: apache/maven-integration-testing#239

@gnodet gnodet force-pushed the MNG-7646 branch 4 times, most recently from 0819759 to acf32e9 Compare January 24, 2023 09:54
@gnodet gnodet marked this pull request as ready for review January 25, 2023 08:40
@gnodet gnodet requested review from MartinKanters and mthmulders and removed request for MartinKanters January 25, 2023 08:40
@gnodet gnodet added this to the 4.0.0-alpha-4 milestone Jan 25, 2023
@gnodet gnodet requested a review from cstamas January 25, 2023 09:29
Copy link
Copy Markdown
Contributor

@mthmulders mthmulders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement!

I've tested by building (mvn test) a particular module of a larger project, while a different module of the same project had an XML error. The build did not fail, until I ran mvn -am test. That gave a failing build because the other module POM could not be parsed.

@gnodet gnodet merged commit f77de57 into apache:master Jan 26, 2023
@gnodet gnodet deleted the MNG-7646 branch January 26, 2023 10:42
@jira-importer
Copy link
Copy Markdown

Resolve #8807

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants