Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0
-
Component/s: None
-
Labels:None
-
Environment:M2.0.1
-
Number of attachments :
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.
Issue Links
Activity
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 ] |
Stéphane Nicoll
made changes -
| Assignee | Stephane Nicoll [ sni ] |
Brett Porter
made changes -
| Workflow | Maven [ 45105 ] | Maven New [ 52443 ] |
John Tolentino
made changes -
| Assignee | John Tolentino [ jtolentino ] |
John Tolentino
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
John Tolentino
made changes -
| Status | In Progress [ 3 ] | Open [ 1 ] |
John Tolentino
made changes -
| Remaining Estimate | 0 minutes [ 0 ] | |
| Time Spent | 6 hours [ 21600 ] |
John Tolentino
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
Mark Chesney
made changes -
| Attachment | MWAR-21-workaround.patch [ 19814 ] |
Mark Chesney
made changes -
Mark Chesney
made changes -
Jason Melnick
made changes -
| Attachment | AbstractWarMojo.patch [ 28152 ] |