Dear all,
I am using Maven (3.0.5) to compile and deploy complex ADF (12.1.3) Applications.
I noticed that contrary to what is stated in this Google group adf discussion by an ADF Team Member
"For 12.1.2, we introduced Maven plugins for ojmake and ojdeploy. It still requires an Oracle executable on your build server, but 1) avoids having to hand-craft invoking the ant tasks from Maven, and 2) allows ojmake/ojdeploy to use dependencies declared in the POM rather than hard-coded references to JDeveloper libraries.",
ojmake seems to still need a hard coded reference to the external dependencies in the JPR fle it uses.
For instance, adding guava as dependency in the pom file of an ADF Project configured in Jdev to use Maven, will result in a similar entry in the JPR file:
<list n="libraryDefinitions">
<hash>
<list n="classPath">
<url protocol="file" path="/${maven:maven.local.repo}com/google/guava/guava/17.0/guava-17.0.jar"/>
</list>
<value n="deployedByDefault" v="true"/>
<value n="description" v="com.google.guava:guava:17.0:jar"/>
<value n="id" v="com.google.guava:guava:17.0:jar"/>
<value n="locked" v="true"/>
</hash>
</list>
My question is: What is this variable in the JPR file resolved to? How can we configure the value of ${maven:maven.local.repo} from the project pom file?
Changing the ${settings.localRepository} maven variable did not help.
ps: This seems to be required on our Jenkins server, on which on complete installation of Jdev 12.1.3 was installed locally in order to get ojmake, ojdeploy and they obscure dependencies. The user which installed Jdev being a different one than the one actually running the maven jobs (jenkins). Moreover, its local maven repository is not the default ~/.m2/repository but /srv/.m2/repo21
Many thanks in advance for your time and help.
Jeremie