Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-995

Documents of patterns used for filtering

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • maven-filtering
    • None

    Description

      There's basically no documentation on the pattern matching used to filter resources. The filter component documentation reads like dev documentation, and I'm left to trail-and-error to figure it out. Adding to the confusion is that Maven plugins can implement their own pattern matching/strain of regex. I think the assembly plugin does its own thing. Its frustrating enough when regex doesn't match so can I at least be clear on the algorithm.

      For example, I want to set a more specific filter to copy resources. The filename may have anywhere between 1 and 5 characters followed by an extension.

      I tried five question marks, but that only matches 5 characters not 4.

       

      <include>?????.changelog</include>
      

      There's no support for something like

       

      <include>?{1,5}.changelog</include>
      

       

      I see double asterisk in some patterns, suggesting globbing. Can this be stated? Perhaps at one point it was obvious - it may seem too simple to bother with. But the Internet is full of alternatives today and a simple write-up will save a lot of guess-work for newbies and those of us with bad memory.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              delany Delany
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: