[
https://issues.apache.org/jira/browse/MNG-8526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17914029#comment-17914029
]
Guillaume Nodet commented on MNG-8526:
--------------------------------------
I would investigate the following:
* {{<scope>none</scope>}}, as this is supposed to work AFAIK
* maybe modify the model to add a {{self.combine}} attribute on the
{{<dependencies>}} element
But really, the {{scope}} first ...
> allow exclude dependencies from parent;allow exclude from all dependencies;
> ---------------------------------------------------------------------------
>
> Key: MNG-8526
> URL: https://issues.apache.org/jira/browse/MNG-8526
> Project: Maven
> Issue Type: Wish
> Reporter: Jin Xu
> Priority: Major
> Attachments: maven.mdo
>
>
> Hi.
> In maven3 we cannot exclude dependencies inherited from parent.
> see this
> https://stackoverflow.com/questions/2681759/is-there-anyway-to-exclude-artifacts-inherited-from-a-parent-pom
> That be kind of annoying if situation comes to be the parent-pom be
> maintained by others, and you extend it and it works fine until one day they
> suddenlly decide to depend on some packages you would never make
> compatible/useless, and you have no permission to change their mind.
> What I wanna do is adding such a gramma like this:
> {code:xml}
> <parent>
> <artifactId>base</artifactId>
> <groupId>es.uniovi.innova</groupId>
> <version>1.0.0</version>
> <exclusions>
> <exclusion>
> <groupId>javax.mail</groupId>
> <artifactId>mail</artifactId>
> </exclusion>
> </exclusions>
> </parent>
> {code}
> but I wanna hear about your opinions first.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)