Maven
  1. Maven
  2. MNG-5601

multimodule plugin configuration e.g. "build-tools" pattern broken

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      1

      Description

      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".

        Activity

        Hide
        Matt Benson added a comment -

        Profiles:
        cs -> checkstyle
        pmd -> PMD
        fb -> findbugs

        Show
        Matt Benson added a comment - Profiles: cs -> checkstyle pmd -> PMD fb -> findbugs
        Hide
        Jason van Zyl added a comment -

        Yup, this looks like a bug in how the graph is created.

        Show
        Jason van Zyl added a comment - Yup, this looks like a bug in how the graph is created.
        Hide
        Jeff Jensen added a comment -

        Maven 3.1.1 does not have this problem, so it's a regression. I just tried using 3.2.3 but can't due to this problem. Are there any known workarounds for 3.2.3 besides use 3.1.1?

        Show
        Jeff Jensen added a comment - Maven 3.1.1 does not have this problem, so it's a regression. I just tried using 3.2.3 but can't due to this problem. Are there any known workarounds for 3.2.3 besides use 3.1.1?

          People

          • Assignee:
            Unassigned
            Reporter:
            Matt Benson
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: