[MNG-7955] Plugins should be allowed some control over the imported packages
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Guillaume Nodet](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=gnt)** opened **[MNG-7955](https://issues.apache.org/jira/browse/MNG-7955?redirect=false)** and commented
We need some simple configuration to allow plugins to indicate which packages / artifacts they need to be provided. This could solve the problems with `org.slf4j` package.
I think the defaults could be the following packages:
* org.apache.maven.api,org.apache.maven.api.*
* org.slf4j
* jarkata.inject
See [https://github.com/apache/maven/pull/1336](https://github.com/apache/maven/pull/1336/files#diff-9600f93ce04acabe017b026dc1ebbb445e8cb363bb2677a764a783ab85cf804aR106-R108) which is related.
---
**Issue Links:**
- [MNG-7921](https://issues.apache.org/jira/browse/MNG-7921) Allow plugins to control classpath extensions
- [MNG-7954](https://issues.apache.org/jira/browse/MNG-7954) Provide a cleaner DI api
- [MNG-8176](https://issues.apache.org/jira/browse/MNG-8176) Restrict class loaders for Maven 4 plugins
Contributor guide
Assessment
This issue has not been assessed yet.