You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by An...@ubs.com on 2006/06/13 12:21:45 UTC

M2 enterpise packaging wars, ears, manifest classpath and WEB-INF/lib

Problem description :

In Maven 2, controlling dependencies within pom.xml files to control
packaging within ear file plus controlling 
entries in the Manifest.mf file within the war file and the contents of
WEB-INF/lib within the war


Example project :
-----------------

Ear file wrapping a jar, and a war file which in turn has a jar in it's
WEB-INF/lib plus a manifest file class path
referencing the jar held within ear file. This is useful for multiple
war's in 1 ear. 


-------------------------
-EAR                    -
-                       -
- frmw.jar              -
-                       -
-    ################## -
-    # WebApp1        # -
-    #  WEB-INF/lib   # -
-    #    x.jar       # -
-    #                # -
-    #                # -
-    #  Manifest.mf   # -
-    #   Class-Path:  # -
-    #     frmw.jar   # -
-    ################## -
-                       -
-------------------------

Projects:
 - WebApp1
 - frmw.jar
 - x.jar

WebApp1 has dependency on frwm.jar and x.jar

want to have frmw.jar appear as entry in Manifest.mf within war
Class-Path: 
want to have x.jar appear in WEB-INF/lib but not as entry in manifest.mf
Class-Path: