[ 
https://issues.apache.org/jira/browse/MNG-7040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Pavlovich updated MNG-7040:
--------------------------------
    Description: 
Ldap-style filters provide a query syntax that would solve for supporting 
complex include and exclude scenarios in a concise way.

ref: [RFC 2254|https://tools.ietf.org/html/rfc2254]

Example - Include all matching a groupId=com.company
{noformat}
<includes>
  <include filter="(groupId=com.company)"/> 
</include>
{noformat}

Example -- Exclude all except one with artfactId=foo-bar
{noformat}
<excludes>
  <exclude filter="(&(groupId=com.company)(!(artifactId=foo-bar)))"
</excludes>
{noformat}

Example -- Exclude all except a couple with various matches
{noformat}
<excludes>
  <exclude 
filter="(&(groupId=com.company)(|(!(artifactId=foo-bar))(!(type=zip))(!(classifier=default))))"
</excludes>
{noformat}

> [RFC] Enhance include and exclude handling to use ldap-style filter syntax
> --------------------------------------------------------------------------
>
>                 Key: MNG-7040
>                 URL: https://issues.apache.org/jira/browse/MNG-7040
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Matt Pavlovich
>            Priority: Major
>
> Ldap-style filters provide a query syntax that would solve for supporting 
> complex include and exclude scenarios in a concise way.
> ref: [RFC 2254|https://tools.ietf.org/html/rfc2254]
> Example - Include all matching a groupId=com.company
> {noformat}
> <includes>
>   <include filter="(groupId=com.company)"/> 
> </include>
> {noformat}
> Example -- Exclude all except one with artfactId=foo-bar
> {noformat}
> <excludes>
>   <exclude filter="(&(groupId=com.company)(!(artifactId=foo-bar)))"
> </excludes>
> {noformat}
> Example -- Exclude all except a couple with various matches
> {noformat}
> <excludes>
>   <exclude 
> filter="(&(groupId=com.company)(|(!(artifactId=foo-bar))(!(type=zip))(!(classifier=default))))"
> </excludes>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to