6 Replies Latest reply on Jan 20, 2013 10:49 PM by James Livingston

    Define a module with multiple jars in resource-root

    mukul goel Newbie

      I want to define a module with a resource-root like this:

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <module xmlns="urn:jboss:module:1.0" name="com.mymodule">
       
      <resources>
         
      <resource-root path="libs"/>
       
      </resources>
       
      <dependencies />
      </module>

       

                  The directory contains all the libraries I need. I've tried it and it does not work, but if I put it this way it work:

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <module xmlns="urn:jboss:module:1.0" name="com.mymodule">
       
      <resources>
         
      <resource-root path="libs/lib1.jar"/>
         
      <resource-root path="libs/lib2.jar"/>
         
      <resource-root path="libs/lib3.jar"/>
         
      <resource-root path="libs/lib4.jar"/>
          ........
       
      </resources>
       
      <dependencies />
      </module>

                  Is there a way to do it the first?