[
https://issues.apache.org/jira/browse/MNG-5601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15055042#comment-15055042
]
Matt Benson commented on MNG-5601:
----------------------------------
Original prescription is:
{code}
./pom.xml references build-tools, setting for child projects
build-tools/pom.xml parent ..
module1/pom.xml parent ..
module2/pom.xml parent ..
etc.
{code}
To work around:
{code}
./pom.xml
build-tools/pom.xml parent ..
parent/pom.xml parent .. references build-tools, setting for child projects
module1/pom.xml parent ../parent
module2/pom.xml parent ../parent
etc.
{code}
> multimodule plugin configuration e.g. "build-tools" pattern broken
> ------------------------------------------------------------------
>
> Key: MNG-5601
> URL: https://issues.apache.org/jira/browse/MNG-5601
> Project: Maven
> Issue Type: Bug
> Components: Dependencies, Plugins and Lifecycle
> Affects Versions: 3.2.1
> Reporter: Matt Benson
> Attachments: cyclic-ref-test.tar.gz
>
>
> 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".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)