[MNG-6708] Command line option to exclude NESTED modules
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 40m
- Merged PRs (30d)
- 275
Description
**[Markus Karg](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mkarg)** opened **[MNG-6708](https://issues.apache.org/jira/browse/MNG-6708?redirect=false)** and commented
[MNG-5230](https://issues.apache.org/jira/browse/MNG-5230) added the -pl !g:a switch to exclude explicitly mentioned module g:a, but keep all other modules in the reactor build, including the submodules of g:a.
In some projects there are deeply nested hierarchies of modules just for structuring purposes. In such purely structural needs for hiearchies, it makes sense to exclude the submodules of g:a. Currently the caller must explicitly KNOW and PROVIDE all off them by hand. This is tedious and error-prone.
Hence it would be great if there would be a command line option to turn the "-pl !g:a" switch into a recursive variant that also skips the children and grandchildren of g:a. The optimal solution would be to not add another global switch (like -amb) but to have a flag for each excluded module, like "-pl !+g:a" a plus symbol explicitly enabling recursion ONLY for g:a but not for other modules.
---
**Affects:** 3.6.1
**Issue Links:**
- [MNG-5230](https://issues.apache.org/jira/browse/MNG-5230) Command line option to exclude modules from reactor
2 votes, 2 watchers
Contributor guide
Assessment
This issue has not been assessed yet.