[
https://issues.apache.org/jira/browse/MNG-7768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17731605#comment-17731605
]
Guillaume Nodet commented on MNG-7768:
--------------------------------------
Part of the problem is that the MavenSession is not available in a few
components. Some SPI such as {{MavenPluginManager}},
{{PluginDependenciesResolver}} are given a {{RepositorySystemSession}}.
I think they should be reworked completely, and they can then be given a v4 api
{{Session}}.
> Don't abuse RepositorySystemSession and other Resolver classes in Maven Core
> ----------------------------------------------------------------------------
>
> Key: MNG-7768
> URL: https://issues.apache.org/jira/browse/MNG-7768
> Project: Maven
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.9.1
> Reporter: Michael Osipov
> Priority: Major
>
> As noticed in [this PR|https://github.com/apache/maven/pull/1092]
> {{maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java}}
> abuses {{RepositorySystemSession}} and {{ConfigUtils}} for convenience
> reasons. Those classes are unrelated and should feed from {{MavenSession}}
> since they don't interact with the repo system at all.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)