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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.1-beta-1
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: