使用maven按顺序加载web app jar - 与websphere中的websphereclassloaderMode =“PARENT_LAST”相同

问题描述:

我使用maven插件http://maven.apache.org/plugins/maven-ear-plugin/usage.html部署到websphere。我需要设置何时加载项目罐子的顺序,以便在websphere常用罐子之前为给定的应用程序加载项目罐子。对于websphere,在“deployment.xml”中使用的配置是websphereclassloaderMode="PARENT_LAST"。我可以使用maven配置这个属性吗?使用maven按顺序加载web app jar - 与websphere中的websphereclassloaderMode =“PARENT_LAST”相同

没有现有的插件,可以自动配置这一特定WAS财产或文件,但你可以简单地创建deployment.xml文件包含EAR source directory内此属性(默认情况下,src/main/application)。例如:src/main/application/META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp/deployment.xml