Loading web app jars in order using maven - same as websphereclassloaderMode=“PARENT_LAST” in websphere

StackOverflow https://stackoverflow.com//questions/9582768

سؤال

I'm deploying to websphere using the maven plugin http://maven.apache.org/plugins/maven-ear-plugin/usage.html. I need to set the ordering of when the project jars are loaded, so that the project jars are loaded for a given application prior to websphere common jars. For websphere the config used is websphereclassloaderMode="PARENT_LAST" within "deployment.xml". Can I configure this property using maven ?

هل كانت مفيدة؟

المحلول

There is no existing plugin that automatically configures this particular WAS property or file, but you can simply create the deployment.xml file containing this property within the EAR source directory (by default, src/main/application). For example: src/main/application/META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp/deployment.xml.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top