Automation of Weblogic 11g Maven Plugin installation
By Dmitry Nefedkin on Jul 27, 2012
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.