[ https://issues.apache.org/jira/browse/MENFORCER-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17699307#comment-17699307 ]
Andrzej Jarmoniuk edited comment on MENFORCER-466 at 3/12/23 7:08 AM: ---------------------------------------------------------------------- What about RequireReleaseDeps? And BannedDependencies (there might be a problem with an integration test there if we should also ignore {_}test-{_}scoped dependencies there - an integration test called MENFORCER-434 actually expects the plugin to ban a test dependency). was (Author: ajarmoniuk): What about RequireReleaseDeps? And BannedDependencies (there might be a problem with an integration test there if we should also ignore {_}test-{_}scoped dependencies there - MENFORCER-434 actually expects the plugin to ban a test dependency). > RequireUpperBoundDeps fails on provided dependencies since 3.2.1 > ---------------------------------------------------------------- > > Key: MENFORCER-466 > URL: https://issues.apache.org/jira/browse/MENFORCER-466 > Project: Maven Enforcer Plugin > Issue Type: Bug > Affects Versions: 3.2.1 > Environment: Apache Maven 3.8.4 > (9b656c72d54e5bacbed989b64718c159fe39b537) > Java version: 1.8.0_352, vendor: Temurin > Reporter: Stefan Cordes > Assignee: Slawomir Jaranowski > Priority: Major > Fix For: next-release > > Attachments: console-3.1.0.txt, console-3.2.1.txt, pom.xml > > > The attached pom.xml works fine for > {code:java} > mvn enforcer:enforce -Dversion.maven-enforcer-plugin=3.1.0 {code} > but > {code:java} > mvn enforcer:enforce -Dversion.maven-enforcer-plugin=3.2.1 {code} > fails with > {code:java} > Rule 0: org.apache.maven.enforcer.rules.dependency.RequireUpperBoundDeps > failed with message: > Failed while enforcing RequireUpperBoundDeps. The error(s) are [ > Require upper bound dependencies error for org.apache.maven:maven-model:3.8.5 > [provided] paths to dependency are: > +-com.canda.maven:mvnbase-maven-plugin:1.0.0-local-SNAPSHOT > +-org.apache.maven:maven-plugin-api:3.8.5 [provided] > +-org.apache.maven:maven-model:3.8.5 [provided] > and > +-com.canda.maven:mvnbase-maven-plugin:1.0.0-local-SNAPSHOT > +-org.apache.maven:maven-core:3.8.7 [provided] > +-org.apache.maven:maven-model:3.8.7 [provided] > and > +-com.canda.maven:mvnbase-maven-plugin:1.0.0-local-SNAPSHOT > +-org.apache.maven:maven-core:3.8.7 [provided] > +-org.apache.maven:maven-model-builder:3.8.7 [provided] > +-org.apache.maven:maven-model:3.8.7 [provided] > and > +-com.canda.maven:mvnbase-maven-plugin:1.0.0-local-SNAPSHOT > +-org.apache.maven:maven-core:3.8.7 [provided] > +-org.apache.maven:maven-resolver-provider:3.8.7 [provided] > +-org.apache.maven:maven-model:3.8.7 [provided] {code} > Similar to dependencyConvergence ( > https://issues.apache.org/jira/browse/MENFORCER-407?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&focusedCommentId=17683326#comment-17683326 > ) the updated plugin > seems to check "<scope>provided</scope>" dependencies for upperBounds. > All provided dependencies (at least the transitive ones?) needs to be ignored > by RequireUpperBoundDeps. -- This message was sent by Atlassian Jira (v8.20.10#820010)