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?
Asked
Active
Viewed 1.7k times
17

Pascal Thivent
- 562,542
- 136
- 1,062
- 1,124

Derek Mahar
- 27,608
- 43
- 124
- 174
-
Shouldn't it be under the project resources directory? META-INF usually contains META.INF for version info. – CoolBeans Aug 31 '10 at 19:53
1 Answers
33
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

Pascal Thivent
- 562,542
- 136
- 1,062
- 1,124