Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-179

<packagingExcludes> should accept regexp to include/exclude specified jars

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.1-alpha-2
    • None
    • None
    • None
    • any

    Description

      It will be nice to be able to pass regular expression fo <packagingExcludes>.
      Now we can only specify WEB-INF/lib/*.jar and it will exclude all jars. What if I have o profile in which I want to exclude all external libraries which are stored on server (and there are many of them) but I want to include submodules of my application. Copying dependencies to profile with <scope>provided</scope> creates my pom really messy.

      Summing up, It will be nice to set <packagingExcludes>^WEB-INF/lib/prefix*.jar<packagingExcludes> to exclude all jars except those which starts with prefix.
      Can I expect this feature in the nearest future?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              grzechom Matthew Grzechocinski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: