Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 523
Derek Mahar Avatar asked Aug 31 '10 19:08

Derek Mahar


People also ask

Where do I put application xml?

xml file is located under a META-INF directory under the parent directory for the application. The JAR, WAR, and client JAR files should be contained within this directory.

Where is WebLogic application xml located?

If you are using WebLogic as your application server, there are certain values in the weblogic. xml file, located in the /WEB-INF directory of the TeamConnect .

What is EAR in Maven?

This plugin generates Java EE Enterprise Archive (EAR) file. It can also generate the deployment descriptor file (e.g. application. xml ).


1 Answers

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
like image 195
Pascal Thivent Avatar answered Sep 18 '22 12:09

Pascal Thivent