[MNG-5601] multimodule plugin configuration e.g. "build-tools" pattern broken
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Matthew Jason Benson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mbenson)** opened **[MNG-5601](https://issues.apache.org/jira/browse/MNG-5601?redirect=false)** and commented
The recommendation at https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html breaks down in projects that use the pattern more than once, e.g. for checkstyle/findbugs/PMD alike. I have boiled this down to a super-simple test project that defines a build-tools module, and in separate profiles declares each of these plugins with a dependency on that submodule. Activating any one of these profiles and calling `mvn validate` works fine, but as soon as you activate two or more of them the command fails with "The projects in the reactor contain a cyclic reference".
---
**Affects:** 3.2.1
**Attachments:**
- [cyclic-ref-test.tar.gz](https://issues.apache.org/jira/secure/attachment/12713398/cyclic-ref-test.tar.gz) (_813 bytes_)
4 votes, 5 watchers
Contributor guide
Assessment
This issue has not been assessed yet.