Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5601

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.2.1
    • None
    • None

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

      Attachments

        1. cyclic-ref-test.tar.gz
          0.8 kB
          Matthew Jason Benson

        Activity

          People

            Unassigned Unassigned
            mbenson Matthew Jason Benson
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: