[ https://issues.apache.org/jira/browse/MNG-5600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17566830#comment-17566830 ]
ASF GitHub Bot commented on MNG-5600: ------------------------------------- famod commented on PR #295: URL: https://github.com/apache/maven/pull/295#issuecomment-1184433892 @michael-o I would very much appreciate if that would end up in 3.9 (as you said it's opt in and only little code is touched). Otherwise it will be practically unusable for years to come, given that big projects like Quarkus cannot/will not force users to use the latest maven version and Maven 4 adoption _will_ most likely take considerably more time that 3.9. > Dependency management import should support exclusions. > ------------------------------------------------------- > > Key: MNG-5600 > URL: https://issues.apache.org/jira/browse/MNG-5600 > Project: Maven > Issue Type: Improvement > Components: Dependencies > Reporter: Radai Rosenblatt > Priority: Major > Fix For: 4.0.x-candidate > > Time Spent: 10m > Remaining Estimate: 0h > > suppose i have a multi-module project that uses spring, and so have this in > dependency-managements in a parent pom: > {code:xml} > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-framework-bom</artifactId> > <version>${org.springframework.version}</version> > <type>pom</type> > <scope>import</scope> > </dependency> > {code} > spring artifacts (or at least a lot of them) have a dependency on > commons-logging. right now, if i want to exclude commons-logging i have to > add an exclusion to every spring dependency in every module of my project, > which is actually more XML overall than giving up on using the bom dependency > altogether and listing all spring dependencies with excludes once in the > parent dependency management. > I'd like to be able to do this: > {code:xml} > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-framework-bom</artifactId> > <version>${org.springframework.version}</version> > <type>pom</type> > <scope>import</scope> > <exclusions> > <exclusion> > <artifactId>commons-logging</artifactId> > <groupId>commons-logging</groupId> > </exclusion> > </exclusions> > </dependency> > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)