Check
https://developer.jboss.org/thread/176211 ;)
In theory it should be:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="deployment.app2.ear.modules.war"
export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
Use export=true to ensure the dependency will be available to
subdeployments of the EAR.
Otherwise, you can assign dependencies to individual subdeployments too:
For example, if you have myweb.war subdeployment in app1.ear:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<sub-deployment name="myweb.war">
<dependencies>
<module name="deployment.app2.ear.modules.war"/>
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
On Tue, Jun 5, 2018 at 12:26 PM, wildflyuser <elayaraja.s(a)gmail.com> wrote:
In my wildfly 9.0.2, i have deployed two ear(app1.ear &
app2.ear)
in app1.ear / META-INF/jboss-deployment-structure.xml how i can define to
have dependency of app2.ear/modules.war/WEB-INF/lib
--
Sent from:
http://wildfly-development.1055759.n5.nabble.com/
_______________________________________________
wildfly-dev mailing list
wildfly-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev