EMEA A&C CCOE Partner Technology Cloud Engineering

How to use ojserver in JDeveloper's 12c maven pom

Guest Author

As we know the latest version of JDeveloper 12c offers a complete support for Maven including handling all ADF-related dependencies in form of ADF libraries. When you create a new application JDeveloper by default asks you to choose one of three available building options, the second of which is Maven. This allows you to create your ADF application with ready to use pom.xml which would handle all compiling, packaging and deploying tasks for you. Oracle has added two specific Maven plugins to automate the building process:

  1. ojmake - compiles your sources
  2. ojdeploy - old, good headless JDeveloper which packages your files and performs all necessary magic to make your ADF app run.

The problem with ojdeploy is that it is being invoked several times during building process which contributes significantly to overall building time. To solve this problem Oracle provided for us a service-like utility which is called ojserver. This command line tool should be started first with the following command:

<jdeveloper_home>/jdeveloper/jdev/bin/>ojserver -start

it starts listening on localhost:2010 (this can be changed through parameters) for build tasks flowing from ojdeploy, which this time should be invoked with two additional parameters:

-ojserver -address localhost:2010

so that brings us back to our pom.xml. In order to use that two parameters in your plugin configuration you should add them in the following way:


Using this approach during my tests I have managed to shorten the overall building time almost twice so this option is definitely worth considering. If you want to learn more about ojserver I recommend an interesting article available here.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.