0 Replies Latest reply on Jun 26, 2014 5:07 AM by Nuno Duarte

    How to add multiple resources when adding a module using a CLI script?

    Nuno Duarte Newbie

      Hello guys,

       

      I'm trying to reduce the size of an EAR by extracting some Spring JARs and then make them available through the Wildfly Application Server.

      In this sense, I have to add a new module to the system. I have already built some CLI scripts to add a module containing just a single jar file and it just worked fine:

       

      module add \

          --name=com.oracle.jdbc \

          --resources=${settings.localRepository}/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar \

          --dependencies=javax.api,javax.transaction.api

       

      But now in my scenario, I need to add multiple JARs (listed below) under a single module (org.springframework):

       

      ${settings.localRepository}/org/springframework/spring-beans/4.0.5.RELEASE/spring-beans-4.0.5.RELEASE.jar, ${settings.localRepository}/org/springframework/spring-core/4.0.5.RELEASE/spring-core-4.0.5.RELEASE.jar

      ${settings.localRepository}/org/springframework/spring-context/4.0.5.RELEASE/spring-context-4.0.5.RELEASE.jar \

      ${settings.localRepository}/org/springframework/spring-context-support/4.0.5.RELEASE/spring-context-support-4.0.5.RELEASE.jar \

      ${settings.localRepository}/org/springframework/spring-aop/4.0.5.RELEASE/spring-aop-4.0.5.RELEASE.jar \

      ${settings.localRepository}/org/springframework/spring-expression/4.0.5.RELEASE/spring-expression-4.0.5.RELEASE.jar \

      ${settings.localRepository}/org/springframework/spring-jdbc/4.0.5.RELEASE/spring-jdbc-4.0.5.RELEASE.jar \

      ${settings.localRepository}/org/springframework/spring-orm/4.0.5.RELEASE/spring-orm-4.0.5.RELEASE.jar \

      ${settings.localRepository}/org/springframework/spring-test/4.0.5.RELEASE/spring-test-4.0.5.RELEASE.jar" \

      ${settings.localRepository}/org/springframework/spring-tx/4.0.5.RELEASE/spring-tx-4.0.5.RELEASE.jar"

      ${settings.localRepository}/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"   \

      ${settings.localRepository}/org/aspectj/aspectjrt/1.8.0/aspectjrt-1.8.0.jar" \

      ${settings.localRepository}/org/aspectj/aspectjweaver/1.8.0/aspectjweaver-1.8.0.jar" \

      ${settings.localRepository}/org/aspectj/aspectjtools/1.8.0/aspectjtools-1.8.0.jar"

       

      I've made a lot of attempts on the command line and I tested different ways to do this, but without success.

       

      Can you guys tell me if it is possible to do this kind of configuration through the command line of Wildfly 8.1.0.Final?

      What is the correct command to configure this?

       

      Thanks in advance!

       

      Best regards,

      Nuno Duarte