Where do I put weblogic-application.xml in my Maven 2 project?

萝らか妹 提交于 2019-12-03 08:55:53

问题


Where do I put weblogic-application.xml in my Maven 2 project so that Maven places it in META_INF in the target EAR artifact?


回答1:


The weblogic-application.xml should be packaged in the META-INF directory of your final EAR (next to the standard application.xml).

With the Maven EAR Plugin, the default location for extra files to include in the EAR (that you can control with the earSourceDirectory parameter) is src/main/application. So the following would work (using the defaults):

myear
|-- src
|   `-- main
|       `-- application
|           `-- META-INF
|               `-- weblogic-application.xml
`-- pom.xml


来源:https://stackoverflow.com/questions/3612610/where-do-i-put-weblogic-application-xml-in-my-maven-2-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!