[ https://issues.apache.org/jira/browse/MENFORCER-333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Ivanov updated MENFORCER-333: ------------------------------------ Description: Hi, I already had the dependency convergence rule working fine in the project when I switched to [CI friendly versions|https://maven.apache.org/maven-ci-friendly.html] and the [flatten plugin|https://www.mojohaus.org/flatten-maven-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: {noformat} [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 {noformat} {{mvn clean install -Dchangelist=-QP_2383 -Dquant-infrastructure.changelist=-QP_2383 -DskipTests}} {code:xml} <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> {code} All accross the project, this is how {{ch.quant:server-core}} is defined. was: Hi, I already had the dependency convergence rule working fine in the project when I switched to [CI friendly versions|https://maven.apache.org/maven-ci-friendly.html] and the [flatten plugin|https://www.mojohaus.org/flatten-maven-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: {noformat} [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 {noformat} {{mvn clean install -Dchangelist=-QP_2383 -Dquant-infrastructure.changelist=-QP_2383 -DskipTests}} {code:xml} <quant-infrastructure.revision>1.0.22</quant-infrastructure.revision> <quant-infrastructure.changelist>-SNAPSHOT</quant-infrastructure.changelist> <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> <optional>true</optional> </dependency> {code} All accross the project, this is how {{ch.quant:server-core}} is defined. > Dependency convergence error in combination with CI friendly versions > --------------------------------------------------------------------- > > Key: MENFORCER-333 > URL: https://issues.apache.org/jira/browse/MENFORCER-333 > Project: Maven Enforcer Plugin > Issue Type: Bug > Components: Standard Rules > Affects Versions: 3.0.0-M2 > Reporter: Andrei Ivanov > Priority: Major > > Hi, > I already had the dependency convergence rule working fine in the project > when I switched to [CI friendly > versions|https://maven.apache.org/maven-ci-friendly.html] and the [flatten > plugin|https://www.mojohaus.org/flatten-maven-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: > {noformat} > [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 > {noformat} > {{mvn clean install -Dchangelist=-QP_2383 > -Dquant-infrastructure.changelist=-QP_2383 -DskipTests}} > {code:xml} > <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> > {code} > All accross the project, this is how {{ch.quant:server-core}} is defined. -- This message was sent by Atlassian JIRA (v7.6.3#76005)