开发者

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

开发者 https://www.devze.com 2023-01-14 20:06 出处:网络
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开发者_开发问答?The weblogic-application.xml should be packaged in the META-

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开发者_开发问答?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消