Guillaume Nodet created MNG-8120:
------------------------------------
Summary: ProjectBuilder api and ModelBuilder enhancements
Key: MNG-8120
URL: https://issues.apache.org/jira/browse/MNG-8120
Project: Maven
Issue Type: Improvement
Reporter: Guillaume Nodet
Assignee: Guillaume Nodet
Fix For: 4.0.0-beta-3
The project builder uses multiple caches in the
{{DefaultProjectBuilder.BuildSession}}:
* the {{modelPool}}
* the {{parentCache}}
* the {{transformerContextBuilder}}
* the {{modelCache}}
The responsabilities are not clear, and the project builder needs to pass
objects to the model builder without a clear API. A {{ModelSession}} interface
should be provided by the {{ModelBuilder}} so that requests can be grouped and
data cached correctly.
This {{ModelSession}} becoming a public API, it could be stored and made
available through the {{Project}} object, thereby becoming available to the
{{DefaultConsumerPomBuilder}} which needs to re-load models _inside a given
model session_ (so as to access cached parents for example).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)