[
https://issues.apache.org/jira/browse/MNG-7768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17713407#comment-17713407
]
Tamas Cservenak commented on MNG-7768:
--------------------------------------
Not much to do here, given validation manager will work in any supported Maven
version (even if "abusing" session data), while whatever you do in 3.9.x or
later, will be accessible only from 3.9.x and later. This change is maybe more
for Maven 4, but I guess it is already sorted out there (Session API object).
> 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)