Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNG-8242] Cache flattened parents during model building
During model building, we do not cache any hierarchy inheritance due to profiles that may be activated based on properties from the child projects. So there's no way to cache the effective parent and just inject it into the child, the whole hierarchy need to be taken into account. However, flattening the parent (i.e. inject the flattened parent's parent into the raw parent) should provide a parent model which has no parents anymore, not activated and not interpolated, but which can be cached and reused. # Conflicts: # maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java # Conflicts: # maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelResolver.java # maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java
- Loading branch information