[
https://issues.apache.org/jira/browse/MDEP-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767151#comment-17767151
]
Delany commented on MDEP-885:
-----------------------------
Its not related to flattening. I'm already making use of the results of the
analysis and I've removed unnecessary dependencies and added missing
dependencies. But, we have a very particular situation where third-party
dependencies (direct and transitive) must be direct dependencies. To protect
the dependencies from future changes, if I set the plugin to fail on warnings,
it will fail because it found transitive dependencies that are not needed on
the modules. I cant do anything about this at this time.
I think as a general rule any plugin should allow filtering with
include/exclude by coordinates.
> Support includes/excludes configuration in analyze v2
> -----------------------------------------------------
>
> Key: MDEP-885
> URL: https://issues.apache.org/jira/browse/MDEP-885
> Project: Maven Dependency Plugin
> Issue Type: New Feature
> Components: analyze-only
> Affects Versions: 3.6.0
> Reporter: Delany
> Assignee: Elliotte Rusty Harold
> Priority: Major
>
> As in MDEP-210, in my project all third-party artifacts, including their
> transitives, must be specified as direct dependencies. What happens is that
> these transitives get flagged as unused. I want the rule to consider only
> dependencies with a groupId identifying the artifacts I produce.
> None of the current options allow this. Please add include/exclude parameters
> so I can filter by Maven coordinates.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)