There is a lot to answer, but if you know please give it a try
Standard ADF Fusion Middleware Application would have following structure:
Application (Described as aggregating pom)
├── Model (jar project)
└── ViewController (war project)
I am having problems with Maven and ojmake, ojdeploy plugins. I am moving a lot of Oracle ADF applications to maven builds from scripts/ant. I end up with packaged files being twice as much in size, this is because of dependencies. Worse is then I satisfy Maven dependencies and build fails on ojmake/okdeploy stage, this is what I don't understand completely: The library (Or Class) has been resolved and .java file gets compiled using standard maven compile plugin but inside ojdeploy for example I would get package not found error that was resolved earlier.
[INFO] [16:37:14] Successful compilation: 0 errors, 0 warnings.
[INFO] Total time: (34604 msec) 34 seconds 604 msec
......
[INFO] --- ojdeploy:12.1.2-0-0:deploy (default) @ ViewController ---
[INFO] C:\Oracle\Middleware\Oracle_Home\jdeveloper\jdev\bin\ojdeploy.exe -J-DUseMaven=true -workspace C:\git\SXDOCS_SHEDULER\ViewController/../SXDOCS_SHEDULER.jws -project ViewController -profile application_production
......
[INFO] Error(19,30): package org.apache.http.client does not exist
[INFO] Error(188,97): cannot find symbol; symbol: class ClientProtocolException; location: class sch.ShedulerPackage.SchedulerWorker
And this dependency has that class:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.1.2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
Can someone please lay out how to properly put together Oracle ADF application and maven build? Oracle docs are quite useless and there isn't much information on the web on Java EE and especially Maven in Fusion Middleware applications.
Some more thoughts and questions:
I'll give a shot here by answering some of your questions.