[ 
https://issues.apache.org/jira/browse/MNG-7768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17713410#comment-17713410
 ] 

Guillaume Nodet commented on MNG-7768:
--------------------------------------

Yes, the v4 api now provides SessionData, accessible from the Session object 
for this very purpose.  The current implementation actually delegates to the 
resolver's SessionData object, but that's a slightly different problem, as it 
can easily be changed if needed (I don't think that's an actual problem at the 
implementation level, as the API is clean).

> 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)

Reply via email to