[ http://jira.codehaus.org/browse/MWAR-21?page=comments#action_54756 ] 

David Boden commented on MWAR-21:
---------------------------------

I'm packaging three .war files in a .ear. They share most of their dependencies.

I'm therefore going to include the dependencies as .jar files in the .ear and 
have them loaded in my container by the EJB ClassLoader. I don't want the .jar 
files packed into both of the .war files.

All I need is a switch to say "don't include any of the .jar dependencies".

One option might be simply to remove the dependencies from my .war pom.xml 
files. This is not desirable. Why? Because, I want Maven to work out which 
dependencies to pack in the .ear file.

> Need a way to include limited set of webapp's dependencies
> ----------------------------------------------------------
>
>          Key: MWAR-21
>          URL: http://jira.codehaus.org/browse/MWAR-21
>      Project: Maven 2.x War Plugin
>         Type: Improvement

>  Environment: M2.0.1
>     Reporter: Dirk Olmes
>     Assignee: Stephane Nicoll
>     Priority: Blocker
>  Attachments: AbstractWarMojo.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to