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

[master][MNG-7350] Introduce a factory for ModelCache #629

Merged
merged 3 commits into from Mar 9, 2022

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Dec 3, 2021

mvnd does redefine a few maven classes in order to plugin its caching layer or change some behaviours, but this is sometime very difficult without copying some core class entirely.
One of those class is the ProjectBuilder and it's being reimplemented in mvnd only because the ModelCache is created using a direct call on the implementation.
This ticket aims to introduce a ModelCacheFactory so that mvnd can simply define a custom factory instead of redefining the full ProjectBuilder.

@gnodet gnodet changed the title [MNG-7350] Introduce a factory for ModelCache [master][MNG-7350] Introduce a factory for ModelCache Dec 3, 2021
Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

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

This truly makes sense. @cstamas Has tackled similar issues with Resolver earlier this year.

@gnodet gnodet requested a review from cstamas December 3, 2021 14:52
@cstamas
Copy link
Member

cstamas commented Dec 3, 2021

This truly makes sense.

Actually all these "extension points" should be componentized (if not already), for easier extension.

@cstamas
Copy link
Member

cstamas commented Dec 3, 2021

Fix missing javadoc and binding
@gnodet
Copy link
Contributor Author

gnodet commented Dec 6, 2021

Is https://github.com/apache/maven/pull/630/files#diff-50ddbca622e461d2056985a5c792fc4652574831f3a8b69da9be3a2f5af9e552R65 missing from here or I missed it?

Nice catch, I missed it because the module was renamed. I've also added a short javadoc on the two new classes.

@gnodet gnodet merged commit b3d5c12 into apache:master Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants