0 Replies Latest reply on Nov 16, 2014 9:23 PM by Luis Garcia

    Shave almost 4MB off your WAR deployments by using PrimeFaces 5.1 as a module.

    Luis Garcia Newbie

      Just wanted to share this with the community - and save you a few hours of dependency hell.

      You can shave 3.9 MB off of your WAR files when using PrimeFaces 5.1 as a module on WildFly 8.x

      Files are hosted here: PeterFalken/WildFly8-Modules · GitHub


      You'll need to use a boss-deployment-structure.xml file in the META-INF directory on the top level of your WAR file

      with the following content:


                     <module name="org.primefaces" meta-inf="export" />


      and place the JAR files (prime faces-5.1.jar & all-themes-1.0.10.jar) under: JBOSS_HOME/modules/system/layers/base/org/primefaces/main

      and a module.xml file with this content:

      <?xml version="1.0" encoding="UTF-8"?>
      <module xmlns="urn:jboss:module:1.3" name="org.primefaces">
                <resource-root path="primefaces-5.1.jar" />
                <resource-root path="all-themes-1.0.10.jar" />
                <module name="javax.faces.api" />
                <module name="javax.api"/>



      I'm looking for some help to do the same for RichFaces 4.5.Final and also RichFaces 5.Beta3