You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/07/19 17:55:00 UTC

[jira] [Commented] (MNG-5600) Dependency management import should support exclusions.

    [ https://issues.apache.org/jira/browse/MNG-5600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549627#comment-16549627 ] 

ASF GitHub Bot commented on MNG-5600:
-------------------------------------

RayzorFlash commented on issue #148: [MNG-5600] Dependency management import should support exclusions.
URL: https://github.com/apache/maven/pull/148#issuecomment-406361883
 
 
   @ChristianSchulte - Any update on when this can/will be merged?? I'm unfamiliar with the maven contribution process

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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: 3.6.x-candidate
>
>
> 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
(v7.6.3#76005)