Geoffrey De Smet created MENFORCER-128:
------------------------------------------

             Summary: Fail the build if a dependency is overwriten with an 
incompatible lower version (patch)
                 Key: MENFORCER-128
                 URL: https://jira.codehaus.org/browse/MENFORCER-128
             Project: Maven 2.x Enforcer Plugin
          Issue Type: New Feature
          Components: Standard Rules
            Reporter: Geoffrey De Smet
            Priority: Critical


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:

{code}

  <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>
{code}

Attaching patch in a few minutes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to