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

Karl Heinz Marbaise commented on MNG-5959:
------------------------------------------

You can also exclude all transitive dependencies starting with [Maven 
3.2.1|http://maven.apache.org/docs/3.2.1/release-notes.html]:

{code:xml}
<dependencies>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-embedder</artifactId>
      <version>3.1.0</version>
      <exclusions>
        <exclusion>
          <groupId>*</groupId>
          <artifactId>*</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
{code}


> Can maven provide a features that exclude dependency gloablly
> -------------------------------------------------------------
>
>                 Key: MNG-5959
>                 URL: https://issues.apache.org/jira/browse/MNG-5959
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: vongosling
>            Assignee: Christian Schulte
>             Fix For: 3.4.0
>
>
> if maven provide the feature,such as property like
> <exclude-property>
>    com.xxx.xxx:test.unit:4.0.9
>    com.xxx.xxx:test.spring:2.0.1
>    com.xxx.xxx:jakarta.log4j:1.2.6
> <exclude-propety>
> no matter these jar scome from(directly or transitivly).yeah.when some 
> architect optimizing or refactoring some very old project,this can help 
> greatly



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to