Maven WAR Plugin
  1. Maven WAR Plugin
  2. MWAR-81

Request enhancement to pattern matching for packagingIncludes/packagingExcludes functionality (regular expressions?)

    Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      n/a

      Description

      The Maven War Plugin currently permits choosing what files will wind up in the .war. It does this via two parameters, warSourceIncludes, and warSourceExcludes. The rule appears to be that the includes are computed, and a list of matches made, then that list is run against the excludes, and any matches taken out of the include list.

      The only wildcards that appear to be supported are *, **, and ?.

      That doesn't work well if you are packaging wars in ears, and therefore want to exclude all jars from the war, except for one or two that have to be in the war in order to run properly. "Exclude all but foo.jar and bar.jar" just doesn't translate well to "here's your simple include template, here's your simple exclude template" representation, at least with current wildcards.

      So this is a wish specifically for something to address the "exclude all but x, y, and z" need for war source includes/excludes, and a suggestion that it might be best to deprecate the warSourceIncludes/warSourceExcludes approach in favor of a single parameter that supports regular expressions instead.

      1. maven-war-plugin-2.1.1-NM.patch
        16 kB
        Nicolas Marcotte
      2. maven-war-plugin-2.1.1-NM-Doc-Test.patch
        5 kB
        Nicolas Marcotte

        Issue Links

          Activity

          Bryan Loofbourrow created issue -
          Dennis Lundberg made changes -
          Field Original Value New Value
          Link This issue relates to MWAR-182 [ MWAR-182 ]
          Dennis Lundberg made changes -
          Link This issue is duplicated by MWAR-179 [ MWAR-179 ]
          Nicolas Marcotte made changes -
          Attachment maven-war-plugin-2.1.1-NM.patch [ 57445 ]
          Dennis Lundberg made changes -
          Summary Request enhancement to pattern matching for warSourceIncludes/warSourceExcludes functionality (regular expressions?) Request enhancement to pattern matching for packagingIncludes/packagingExcludes functionality (regular expressions?)
          Nicolas Marcotte made changes -
          Attachment maven-war-plugin-2.1.1-NM-Doc-Test.patch [ 57509 ]
          Dennis Lundberg made changes -
          Assignee Dennis Lundberg [ dennislundberg ]
          Dennis Lundberg made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 2.1.2 [ 17452 ]
          Status Open [ 1 ] Closed [ 6 ]
          Kristian Rosenvold made changes -
          Fix Version/s 2.1.2 [ 17452 ]
          Fix Version/s 2.2 [ 15001 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:28:45 UTC 2015 [ 1428240525159 ]
          Mark Thomas made changes -
          Workflow jira [ 12728497 ] Default workflow, editable Closed status [ 12764962 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:49:55 UTC 2015 [ 1428284995525 ]
          Mark Thomas made changes -
          Workflow jira [ 12966315 ] Default workflow, editable Closed status [ 13002389 ]
          Mark Thomas made changes -
          Assignee dennislundberg [ dennislundberg ] Dennis Lundberg [ dennisl@apache.org ]

            People

            • Assignee:
              Dennis Lundberg
              Reporter:
              Bryan Loofbourrow
            • Votes:
              15 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development