I have an EAR with the following structure:
ear.ear mywar.war lib jar1.jar jar2.jar jar3.jar
I have several WARs in the deployment directory and I would like them to have jar1.jar. jar2.jar and jar3.jar from ear.ear as dependencies.
Is it possible?
I tried the following for jboss-deployment-structure.xml with no luck.
<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <dependencies> <module name="deployment.ear.ear.jar1.jar"/> <module name="deployment.ear.ear.jar2.jar"/> <module name="deployment.ear.ear.jar3.jar"/> </dependencies> </deployment> </jboss-deployment-structure> <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <dependencies> <module name="deployment.ear.ear.lib.jar1.jar"/> <module name="deployment.ear.ear.lib.jar2.jar"/> <module name="deployment.ear.ear.lib.jar3.jar"/> </dependencies> </deployment> </jboss-deployment-structure>
Is it possible to have non-ejb JAR dependencies in a separate EAR?
source share