Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7040

[RFC] Enhance include and exclude handling to use ldap-style filter syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    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

      Example - Include all matching a groupId=com.company

      <includes>
        <include filter="(groupId=com.company)"/> 
      </include>
      

      Example – Exclude all except one with artfactId=foo-bar

      <excludes>
        <exclude filter="(&amp;(groupId=com.company)(!(artifactId=foo-bar)))"/>
      </excludes>
      

      Example – Exclude all except a few with various matches

      <excludes>
        <exclude filter="(&amp;(groupId=com.company)(|(!(artifactId=foo-bar))(!(type=zip))(!(classifier=default))))"/>
      </excludes>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mattrpav Matt Pavlovich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: