[
https://issues.apache.org/jira/browse/MNG-5600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15738328#comment-15738328
]
Hudson commented on MNG-5600:
-----------------------------
SUCCESS: Integrated in Jenkins build maven-3.x #1424 (See
[https://builds.apache.org/job/maven-3.x/1424/])
[MNG-5600] Dependency management import should support exclusions. (schulte:
rev 3bec6b92ff0c610cd15ef4458177d5a33ddc22d3)
* (edit)
maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
> 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
> Assignee: Christian Schulte
> Fix For: 3.4.0
>
>
> 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
(v6.3.4#6332)