Using maven to create an ear file for ADF ...?
I notice that Oracle ADF has its own EAR structure. There is an adf folder created the same, inside the EAR, along with the WAR file, and the default META-INF directory is the adf directory:
adf
/com
/companypackagehere
bc4j.xcfg
/META-INF
adf-config.xml
connections.xml
Should I recreate this by moving files ...? And how can I build Oracle ADF and weblogic EAR compliant using maven?
edit . I noticed that when JDeveloper creates the mentioned ear file, the source folder layout and EAR folder layout (as described) are hardly the same. So it takes different xml files and from different places and puts them in the described layout. How can I achieve this in maven? What plugins / tricks do I need?
a source to share
I have no experience with Oracle ADF, but I think you could just put the directory adf
in ${basedir}/src/main/application
your EAR module directory (this is the default earSourceDirectory
, which points to one directory to add additional files to the EAR).
Something like that:
... | - ear | | - src | | `- main | | `- application | | | - META-INF | | | `- application.xml | | `- adf | | | - com | | | `- companypackagehere | | | `- bc4j.xcfg | | `- META-INF | | | - adf-config.xml | | `- connections.xml | `- pom.xml | - web | + - src | `- pom.xml `- pom.xml
And packaging this project will result in something coming close (unless you have EJBs or other libraries):
ear-1.0 | - META-INF | `- application.xml | - adf | | - com | | `- companypackagehere | | `- bc4j.xcfg | `- META-INF | | - adf-config.xml | `- connections.xml `- web-1.0.war
a source to share
I am assuming you are using JDeveloper, one tool you might want to use is ojdeploy
This is a tool for creating deployable EAR files from your JDeveloper project. It's much easier to work with than an external tool because you don't need to sync your deployment and development scripts.
a source to share