@OracleIMC Partner Resources & Training: Discover your Modernization options + Reach new potential through Innovation

Automation of Weblogic 11g Maven Plugin installation

Guest Author

As most of you know, Oracle Weblogic Plugin for Apache Maven is available since Weblogic 10.3.4 and it's really useful for deploying your applications to Oracle Weblogic domain directly  from your Maven build.

Each time I needed the plugin for my projects on the different laptops or for different Weblogic versions, I had to go to the documentation and walked through the steps to install it to my local Maven repository. The similar installation story repeated several times with Weblogic Full Client library,  which is needed for developing the standalone clients interacting with Weblogic Server (JMS message producers, etc..). This library must be created before the first use,  here is the documentation link for those who need more details on that topic.

Today I needed to repeat such an installation one more time and decided to automate this process. So let me share the initial version of the script named installWlsLibs2maven.cmd which does the following:

  • accepts Oracle Fusion Middleware home as an input parameter
  • calculates Oracle Weblogic Server version
  • generates wlfullclient.jar and  weblogic-maven-plugin.jar if it has not done before
  • installs both jars to the local Maven repository

The script is a part of wls-scripts GitHub project, you're welcome to modify it, add a Linux version of it, or even contrubute other useful Weblogic-related scripts.

Happy scripting!

Join the discussion

Comments ( 2 )
  • Steve Button Friday, September 7, 2012

    Hey Dimitruy - nice script, glad you find the maven plugin useful. We added a lot more functionality to the 12c version so that it can handle more of the setup/configure roles with WLS -- I have an example where all I have is a maven project with the src code, from which I can install WLS, create a domain, start the server, create a datasource, deploy and test the application -- all executed from one maven profile.

  • Dmitry Nefedkin Friday, September 7, 2012

    Hi Steve,

    yes, I know that 12c maven plugin is very feature rich now, made overview of these features during WLS for Developers Webcast - https://blogs.oracle.com/imc/entry/partner_webcast_weblogic_for_developers

    The example you've mentioned: is it available among the examples that Jeff West has commited here - http://java.net/projects/weblogic-examples/sources/weblogic-12c-user-examples/show/jeffrey.west/maven-examples ?

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