[ 
https://jira.codehaus.org/browse/MNG-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279834#comment-279834
 ] 

Jean-Noel Rouvignac commented on MNG-1977:
------------------------------------------

Hi Arnaud,

You were right, using <scope>excluded</scope> with older versions of maven (I 
used v2.2.1) gives the opposite result to what is intended. The excluded scope 
is ignored and replaced with a compile scope.

How do you want to proceed now? I suppose we now need to do a pom.xml format 
change. If I understood correctly , this is scheduled for maven 3.1.

Do you want to go for the solution I suggested in my last comment?
http://jira.codehaus.org/browse/MNG-1977?focusedCommentId=277793&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-277793

Or do you want to do it differently?

Please let me know your suggestions and I will try to implement it.

Thanks,
Jean-Noël

> Global dependency exclusions
> ----------------------------
>
>                 Key: MNG-1977
>                 URL: https://jira.codehaus.org/browse/MNG-1977
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: POM
>            Reporter: Kees de Kooter
>             Fix For: 3.1
>
>         Attachments: global_excls_it-test_v2.patch, 
> global_excls_maven3_v2.patch
>
>
> I depend on some libraries, which in turn depend on something
> (which in turn depend on something) that I don't want, because I declare
> some other artifact in my pom.xml.
> A concrete example: I don't want that the artifact "xerces" is imported in
> my project because I declare to depend on  "xercesImpl" which ships newer
> libraries but with the same namespaces.
> I guess I would need an "exclude transitive dependency at all", either
> globally or from this and that artifact. I saw the <exclusions> tag, but it
> forces me to be very verbose and have exact control on what is required by a
> dependency.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to