Automation of Weblogic 11g Maven Plugin installation

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!

Comments:

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.

Posted by Steve Button on September 07, 2012 at 03:53 AM CEST #

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 ?

Posted by Dmitry Nefedkin on September 07, 2012 at 09:07 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Oracle ECEMEA Partner Hubs Migration Center Team

We share our skills to maximize your revenue!
Our dedicated team of consultants can rapidly and successfully assist you to adopt and implement the latest of Oracle Technology in your solutions.

Stay Connected
partner.imc
@
beehiveonline.oracle-DOT-com
Google+

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
2
3
4
5
6
9
10
11
12
13
14
16
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today