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

WAR plugin should support minimal WARs for inclusion within an EAR

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Description

      I noticed that when I build a WAR, I get a gigantic WEB-INF/lib with all my deps. This is fine for a default but maven should also support "skeleton" WARs which will be packaged within an EAR. We have EARs which package 3-4 WARs each and to have the deps duplicated within each WAR means we cannot have shared data (since the classes are loaded within each WAR's classloader, rather than by the parent EAR's classloader). It also means 80MB EARs!

      It seems like two things need to happen:

      1) Add a "skeleton" flag which prevents copying any dependencies to WEB-INF/lib.
      2) Instead generate a META-INF/MANIFEST.MF which has a Class-Path entry which lists the relative locations of the dependencies within the parent EAR.

      Fabrice has basically the same idea written down here. Starting with "- for a War..." : http://marc.theaimsgroup.com/?l=turbine-maven-user&m=112737860024530&w=2

        Issue Links

          Activity

          Mike Perham made changes -
          Field Original Value New Value
          Attachment ear-packaged.diff.txt [ 16819 ]
          Emmanuel Venisse made changes -
          Link This issue depends upon PLX-158 [ PLX-158 ]
          Brett Porter made changes -
          Fix Version/s 2.0-beta-4 [ 11991 ]
          John Casey made changes -
          Fix Version/s 2.0.1 [ 12000 ]
          Fix Version/s 2.0.2 [ 12107 ]
          Maria Odea Ching made changes -
          Key MNG-1028 MWAR-9
          Component/s maven-war-plugin [ 11796 ]
          Project Maven 2 [ 10500 ] Maven 2.x War Plugin [ 11150 ]
          Affects Version/s 2.0-beta-1 [ 11040 ]
          Workflow Maven [ 39921 ] jira [ 44177 ]
          Fix Version/s 2.0.3 [ 12107 ]
          Jason van Zyl made changes -
          Workflow jira [ 44177 ] Maven [ 45108 ]
          Mike Perham made changes -
          Attachment ear-packaged.diff.txt [ 16819 ]
          Brett Porter made changes -
          Workflow Maven [ 45108 ] Maven New [ 52446 ]
          Mark Chesney made changes -
          Link This issue is related to MWAR-21 [ MWAR-21 ]
          Mark Chesney made changes -
          Link This issue is related to MEAR-17 [ MEAR-17 ]
          Shelley Baker made changes -
          Link This issue is related to MECLIPSE-167 [ MECLIPSE-167 ]
          Stéphane Nicoll made changes -
          Assignee Stephane Nicoll [ sni ]
          Jason Melnick made changes -
          Attachment AbstractWarMojo.patch [ 28151 ]
          Olivier Lamy made changes -
          Fix Version/s 2.1 [ 12616 ]
          Jörg Schaible made changes -
          Link This issue is related to MEAR-60 [ MEAR-60 ]
          Dennis Lundberg made changes -
          Fix Version/s 2.1-beta-1 [ 12616 ]
          Fix Version/s 2.1 [ 15001 ]
          Nicolas Marcotte made changes -
          Attachment maven-war-plugin-2.1.1-NM.patch [ 57444 ]
          Stéphane Nicoll made changes -
          Attachment maven-war-plugin-2.1.1-NM.patch [ 57444 ]
          Dennis Lundberg made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Stephane Nicoll [ sni ]
          Fix Version/s 2.2 [ 15001 ]
          Resolution Won't Fix [ 2 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Mike Perham
            • Votes:
              59 Vote for this issue
              Watchers:
              47 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: