Saturday, 15 January 2011

jboss7.x - Jboss AS7 - How to create module.xml for external libraries? -



jboss7.x - Jboss AS7 - How to create module.xml for external libraries? -

i have multiple .ear projects utilize multiple libraries. need create mutual , add together in module. there easy way create module.xml need create module.xml each library?

also need define dependency each library in module.xml?

please allow me know if there easy way handle this?

no need create 'module.xml' each library.

create single module , set libraries there , mention in resource-root. mention module dependencies (if no, ignore it).

example module.xml

<?xml version="1.0" encoding="utf-8"?> <module xmlns="urn:jboss:module:1.1" name="com.test.myownresteasy"> <properties> <property name="jboss.api" value="private"/> </properties> <resources> <resource-root path="activation-1.1.jar"/> <resource-root path="httpcore-4.1.2.jar"/> <resource-root path="jettison-1.3.1.jar"/> <resource-root path="resteasy-jaxrs-2.3.2.final.jar"/> <resource-root path="scannotation-1.0.3.jar"/> <resource-root path="httpclient-4.1.2.jar"/> <resource-root path="jaxrs-api-2.3.2.final.jar"/> <resource-root path="jul-to-slf4j-stub-1.0.0.final.jar"/> <resource-root path="resteasy-jaxb-provider-2.3.2.final.jar"/> <resource-root path="resteasy-jettison-provider-2.3.2.final.jar"/> </resources> <dependencies> <!-- insert dependencies here --> </dependencies> </module>

copy modules '$jboss/modules' directory makes global module.

refer: how can utilize external jars on jboss 7?

jboss7.x

No comments:

Post a Comment