Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-231

Reactor Module Convergence doesn't work when relativePath is set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.4
    • None
    • Standard Rules
    • None

    Description

      When setting version to X in the root pom of a multi-module build and version Y in a child pom and the child pom specifies a correct <relativePath> tag in the parent section of the child pom, Maven will not fail the build.

      I tried invoking mvn validate from the root and it reported that the build succeeded. However, if I remove the <relativePath> from the parent section, the enforcer rule correctly reports that the module build is incoherent.

      Moreover, if I invoke mvn -pl :sub-module validate with the <relativePath> reinserted, it will again correctly report an incoherent build.

      Attachments

        1. menforcer-231.zip
          4 kB
          Daniel Roig

        Activity

          People

            khmarbaise Karl Heinz Marbaise
            droig Daniel Roig
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: