[MNG-8524] DefaultInterpolator should be used by injection#2049
[MNG-8524] DefaultInterpolator should be used by injection#2049CrazyHZM merged 2 commits intoapache:masterfrom
Conversation
.../maven-cli/src/main/java/org/apache/maven/cling/extensions/ExtensionConfigurationModule.java
Outdated
Show resolved
Hide resolved
|
I'm not sure we want to change the maven 3 code base too much. I've tried to revert most changes to get back into a compatible state, so if we add a constructor, it might break something. And for not much value, as this code is not really used. |
|
Agreed, the compat/maven-embedder changes should be undone. |
|
There are two references to We can simply inline those constructors, as they are only used in a few tests. This will move the references to the implementation to the tests instead of the main code. |
Signed-off-by: crazyhzm <[email protected]>
@gnodet Done. |
| private final CoreExtensionEntry extension; | ||
| private final UnaryOperator<String> callback; | ||
|
|
||
| private final DefaultInterpolator interpolator = new DefaultInterpolator(); |
There was a problem hiding this comment.
This component is loaded very early without the full container afaik. This would require an Interpolator to be bound to the ProtoSession and ProtoLookup. Currently the only component added is ClassWorld.
# Conflicts: # impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSettingsBuilder.java # impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultToolchainsBuilder.java # impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ConditionProfileActivator.java
|
Resolve #9918 |
JIRA Issue: [MNG-8524]