ms-f10 opened a new issue, #938:
URL: https://github.com/apache/maven-enforcer/issues/938

   ### New feature, improvement proposal
   
   I would like to request a new enforcer rule (or enhancement to existing 
rules) that can ban dependencies based on version qualifiers/suffixes, 
independent of the specific version number.
   
   Current Limitation:
   
   The BannedDependencies rule currently cannot match version qualifiers 
flexibly. I attempted the following configuration:
   ```
   <bannedDependencies>
       <excludes>
           <exclude>a.b.c*:*:-a*</exclude>
           <exclude>a.b.c*:*:-m*</exclude>
           <exclude>a.b.c*:*:-rc*</exclude>
       </excludes>
   </bannedDependencies>
   ```
   However, based on the [ArtifactMatcher 
implementation](https://github.com/apache/maven-enforcer/blob/enforcer-3.6.1/enforcer-rules/src/main/java/org/apache/maven/enforcer/rules/utils/ArtifactMatcher.java#L154),
 the version field does not support wildcard matching for qualifiers in this 
way.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to