[
https://issues.apache.org/jira/browse/MNG-7040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17239930#comment-17239930
]
Piotr Zygielo commented on MNG-7040:
------------------------------------
Please fix your examples and xml-validate them. Then observe what happens to
{{&}}. Do you like it?
As pom is xml, perhaps support for XPath in such filter would be more
appropriate.
> [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 few 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)