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

packaged (war:war) and exploded (war:expanded) webapps have different content

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Auto Closed
    • Affects Version/s: 2.1-beta-1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Specifically, when using <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>, the jars are correctly excluded from the packaged form of the war, but still present in the exploded form.

      Both forms should have identical content and should be totally interchangable. This also means that there is no possible way to exclude jars from an exploded webapp.

      As a workaround, I also attempted this:

      <resource>
        <excludes>
          <exclude>WEB-INF/lib/*.jar</exclude>
        </excludes>
      </resource>
      

      But just got an exception thrown for my efforts...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kev.lee.wright Kevin Wright
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: