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
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      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 created issue -
          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 -
          Component/s maven-war-plugin [ 11796 ]
          Key MNG-1028 MWAR-9
          Affects Version/s 2.0-beta-1 [ 11040 ]
          Fix Version/s 2.0.3 [ 12107 ]
          Project Maven 2 [ 10500 ] Maven 2.x War Plugin [ 11150 ]
          Workflow Maven [ 39921 ] jira [ 44177 ]
          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 ]
          mchesney made changes -
          Link This issue is related to MWAR-21 [ MWAR-21 ]
          mchesney made changes -
          Link This issue is related to MEAR-17 [ MEAR-17 ]
          sl010380 made changes -
          Link This issue is related to MECLIPSE-167 [ MECLIPSE-167 ]
          Stephane 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 ]
          Joerg 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 ]
          Stephane Nicoll made changes -
          Attachment maven-war-plugin-2.1.1-NM.patch [ 57444 ]
          Dennis Lundberg made changes -
          Fix Version/s 2.2 [ 15001 ]
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]
          Assignee Stephane Nicoll [ sni ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:28:45 UTC 2015 [ 1428240525159 ]
          Mark Thomas made changes -
          Workflow jira [ 12728419 ] Default workflow, editable Closed status [ 12765055 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:49:55 UTC 2015 [ 1428284995525 ]
          Mark Thomas made changes -
          Workflow jira [ 12966377 ] Default workflow, editable Closed status [ 13002555 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development