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 Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      M2.0.1
    • Number of attachments :
      3

      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
        Dirk Olmes
      2. AbstractWarMojo.patch
        11 kB
        Jason Melnick
      3. MWAR-21-workaround.patch
        4 kB
        Mark Chesney

        Issue Links

          Activity

          John Tolentino logged work - 24/Mar/06 2:52 AM
          • Time Spent:
            6 hours
             
            Understanding the usecases and concerns of those who posted and put comments on this issue; verified existing profiles and dependency mechanism behavior; and stepped through current version of maven-war-plugin to confirm artifacts included in the packaging.

            People

            • Assignee:
              John Tolentino
              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 - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h