我在哪里将weblogic-application.xml放在我的Maven 2项目中? [英] Where do I put weblogic-application.xml in my Maven 2 project?
问题描述
我在哪里放 我的Maven 2项目中的weblogic-application.xml
,以便Maven将它放在目标EAR工件中的 META_INF
中? / p>
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?
推荐答案
weblogic-application.xml
应打包在 META-INF
最终EAR的目录(标准 application.xml
旁边)。
The weblogic-application.xml
should be packaged in the META-INF
directory of your final EAR (next to the standard application.xml
).
使用 Maven EAR插件,要包含在EAR中的额外文件的默认位置 (可以使用 earSourceDirectory
参数)是 src / main / application
。所以以下方法可行(使用默认值):
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
这篇关于我在哪里将weblogic-application.xml放在我的Maven 2项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!