Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNG-8120] Refactor ModelBuilder and ProjectBuilder #1700

Merged
merged 64 commits into from
Sep 28, 2024

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Sep 4, 2024

Refactor ModelBuilder and ProjectBuilder.
With the introduction of the build pom and raw -> build pom transformation, the construction of the effective poms in two steps become very problematic. Over the time, multiple caches have been added to the ProjectBuilder and ModelBuilder related classes which are often redundant.

This PR thus changes things and move the recursive construction of the models fully into the ModelBuilder in a single call. When building build poms, a first step is done by parsing the file models from the root, then building all needed effective models from those. All the inference can be cleanly done because the builder has all the file models ready. The result will be used by the ProjectBuilder to build the projects.

IT PR: apache/maven-integration-testing#357

@gnodet gnodet force-pushed the project-builder branch 9 times, most recently from c5d7d81 to 2ac2957 Compare September 7, 2024 08:33
# Conflicts:
#	maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java
@gnodet gnodet force-pushed the project-builder branch 8 times, most recently from b9a4125 to 2b5c901 Compare September 19, 2024 15:52
@gnodet gnodet added this to the 4.0.0-beta-5 milestone Sep 27, 2024
@gnodet gnodet self-assigned this Sep 27, 2024
@gnodet gnodet marked this pull request as ready for review September 27, 2024 15:03
@gnodet gnodet merged commit 2d22462 into apache:master Sep 28, 2024
13 checks passed
@gnodet gnodet deleted the project-builder branch September 30, 2024 12:59
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.

2 participants