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

Dependency convergence error in combination with CI friendly versions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.0.0-M2
    • None
    • Standard Rules
    • None

    Description

      Hi,

      I already had the dependency convergence rule working fine in the project when I switched to CI friendly versions and the flatten plugin.

       Unfortunately, the rule doesn't seem to work properly for transitive dependencies, it's not replacing the version properties with the values passed as cmd line parameters:

      [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven) @ user-management-impl ---
      [WARNING]
      Dependency convergence error for ch.quant:server-core:1.0.22-QP_2383 paths to dependency are:
      +-ch.quant.pos:user-management-impl:1.0.6-QP_2383
        +-ch.quant:server-core-impl:1.0.22-QP_2383
          +-ch.quant:server-core:1.0.22-QP_2383
      and
      +-ch.quant.pos:user-management-impl:1.0.6-QP_2383
        +-ch.quant.pos:core-rest:1.0.6-QP_2383
          +-ch.quant:server-core:1.0.22-SNAPSHOT
      

      mvn clean install -Dchangelist=-QP_2383 -Dquant-infrastructure.changelist=-QP_2383 -DskipTests

      <quant-infrastructure.revision>1.0.22</quant-infrastructure.revision>
      <quant-infrastructure.changelist>-SNAPSHOT</quant-infrastructure.chan<quant.core.version>${quant-infrastructure.revision}${quant-infrastructure.changelist}</quant.core.version>
      
      <dependency>
          <groupId>ch.quant</groupId>
          <artifactId>server-core</artifactId>
          <version>${quant.core.version}</version>
      </dependency>
      

      All accross the project, this is how ch.quant:server-core is defined.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              shadow Andrei Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: