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

Fail the build if a dependency is overwriten with an incompatible lower version (patch)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.1
    • Standard Rules
    • None
    • Patch

    Description

      Overwriting a dependency to a lower version than any of your other dependencies need should fail the build if this new enforcer rule is active.

      For example, this is bad:

        <dependencies>
          <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.4.0</version>
          </dependency>
          <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>0.9.9</version>
            <!-- Depends on org.slf4j:slf4j-api:1.5.0 -->
          </dependency>
        </dependencies>
      

      Attaching patch in a few minutes.

      Attachments

        1. MENFORCER-128.patch
          23 kB
          Geoffrey De Smet

        Activity

          People

            pgier Paul Gier
            ge0ffrey.desmet Geoffrey De Smet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: