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

Alexander Kriegisch edited comment on MDEP-387 at 7/7/16 11:55 AM:
-------------------------------------------------------------------

I would like this to be reopened because I also need more control. I only want 
to ignore used undeclared test dependencies because I have a test resources 
artifact which contains everything as compile dependencies and which I import 
everywhere with scope test. I.e. I know exactly that the test dependencies are 
there transitively, there is no need for me to list them in every submodule. I 
want the build to fail for used undeclared depdendencies in all other scopes 
though.

Maybe a [syntax like in Maven 
Enforcer|http://maven.apache.org/enforcer/enforcer-rules/banTransitiveDependencies.html]
 would be helpful:

> groupId[:artifactId[:version[:type[:scope[:classifier]]]]] . Wildcard '*' can 
> be used to in place of specific section (e.g. group:*:1.0 will match both 
> 'group:artifact:1.0' and 'group:anotherArtifact:1.0') Version is a string 
> representing standard maven version range.


was (Author: kriegaex):
I would like this to be reopened because I also need more control. I only want 
to ignore used undeclared test dependencies because I have a test resources 
artifact which contains everything as compile dependencies and which I import 
everywhere with scope test. I.e. I know exactly that the test dependencies are 
there transitively, there is no need for me to list them in every submodule. I 
want the build to fail for used undeclared depdendencies in all other scopes 
though.

Maybe a [syntax like in Maven 
Enforcer|http://maven.apache.org/enforcer/enforcer-rules/banTransitiveDependencies.html]

> Finer distinctions for ignoreNonCompile
> ---------------------------------------
>
>                 Key: MDEP-387
>                 URL: https://issues.apache.org/jira/browse/MDEP-387
>             Project: Maven Dependency Plugin
>          Issue Type: New Feature
>          Components: analyze
>    Affects Versions: 2.5.1
>            Reporter: Benson Margulies
>
> I'd like to be able to exclude 'runtime' from the picture without excluding 
> the others. I'd request the ability to list the desired scopes.



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

Reply via email to