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

Need a way to include limited set of webapp's dependencies

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      M2.0.1

      Description

      I need a way to pack a war that includes only a limited set of the webapp's dependencies. We're deploying in mainly two different environments: for testing, the webapp runs standalone and thus needs to include all its dependencies in the war. For production we deploy the webapp into a JBoss server that has all the dependencies already installed.

      I've modified AbstractWarMojo in the following way: 1) allow to specify dependencyIncludes an dependencyExcludes (as lists) 2) upon building the war, each dependency is checked against the excludes and the includes and will be added to the war accordingly.

      While this patch may not be the best way to to it, it clearly shows my requirements.

      1. AbstractWarMojo.diff
        3 kB
      2. AbstractWarMojo.patch
        11 kB
        Jason Melnick
      3. MWAR-21-workaround.patch
        4 kB
        mchesney

        Issue Links

          Activity

          Dirk Olmes created issue -
          Jason van Zyl made changes -
          Field Original Value New Value
          Workflow jira [ 44581 ] Maven [ 45105 ]
          Brett Porter made changes -
          Fix Version/s 2.0 [ 12160 ]
          Stephane Nicoll made changes -
          Assignee Stephane Nicoll [ sni ]
          Brett Porter made changes -
          Workflow Maven [ 45105 ] Maven New [ 52443 ]
          Ernesto S. Tolentino Jr. made changes -
          Assignee John Tolentino [ jtolentino ]
          Ernesto S. Tolentino Jr. made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Ernesto S. Tolentino Jr. made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Ernesto S. Tolentino Jr. made changes -
          Remaining Estimate 0h [ 0 ]
          Time Spent 6h [ 21600 ]
          Ernesto S. Tolentino Jr. made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          mchesney made changes -
          Attachment MWAR-21-workaround.patch [ 19814 ]
          mchesney made changes -
          Link This issue is related to MWAR-9 [ MWAR-9 ]
          mchesney made changes -
          Link This issue is related to MEAR-17 [ MEAR-17 ]
          Jason Melnick made changes -
          Attachment AbstractWarMojo.patch [ 28152 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:28:45 UTC 2015 [ 1428240525159 ]
          Mark Thomas made changes -
          Workflow jira [ 12728438 ] Default workflow, editable Closed status [ 12765019 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:49:55 UTC 2015 [ 1428284995525 ]
          Mark Thomas made changes -
          Workflow jira [ 12966600 ] Default workflow, editable Closed status [ 13003156 ]

            People

            • Assignee:
              Ernesto S. Tolentino Jr.
              Reporter:
              Dirk Olmes
            • Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h
                6h

                  Development