apache / apache/maven

[MNG-7768] Don't abuse RepositorySystemSession and other Resolver classes in Maven Core

Open
#9,220 3 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Michael Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)** opened **[MNG-7768](https://issues.apache.org/jira/browse/MNG-7768?redirect=false)** and commented

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.

---

**Affects:** 3.9.1

**Issue Links:**
- [MNG-7810](https://issues.apache.org/jira/browse/MNG-7810) Provide a SPI for the v4 api
(_**"requires"**_)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.