How to create a module with multiple dependencies using CLI non interactive mode in EAP
Issue
- How to create a
modulewithmultiple dependenciesusing CLInon interactive modein EAP7. - We are trying to create jdbc module with
multiple dependenciesusing jboss-cli.sh innon interactive modeand adding two comma separated dependencies in module.xml. It fails to add multiple dependencies in module.xml with exception
./bin/jboss-cli.sh -c --commands="module add --name=com.microsoft --resources=/home/jboss-eap-7.0/sqljdbc4-2.jar
--dependencies=javax.api,javax.transaction.api"
'javax.transaction.api' is not a valid operation name.
But It is creating following module.xml which is missing "javax.transaction.api":
<?xml version="1.0" ?>
<module xmlns="urn:jboss:module:1.1" name="com.microsoft">
<resources>
<resource-root path="sqljdbc4-2.jar"></resource>
</resources>
<dependencies>
<module name="javax.api"></module>
</dependencies>
</module>
Environment
- RedHat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.