我有一个具有以下结构的 EAR:
ear.ear
mywar.war
lib
jar1.jar
jar2.jar
jar3.jar
我在部署目录中有多个 WAR,我希望它们有 jar1.jar。ear.ear 中的 jar2.jar 和 jar3.jar 作为依赖项。
这可能吗?
我已经为 jboss-deployment-structure.xml 尝试了以下方法,但没有成功。
<?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>
是否可以在单独的 EAR 中具有非 ejb JAR 依赖项?