Skip to main content

Weblogic Tip #1 - Installing Oracle Weblogic Server using Maven and the Zip distribution

Posted by mriem on May 21, 2014 at 8:50 AM PDT

Have you ever wondered if it is possible to install Oracle Weblogic Server using Maven? Well, it is.

  1. Install the Weblogic plugin
  2. Use the Weblogic plugin

1. Install the Weblogic plugin

Here is a bit of a chicken and the egg story. You will have to have an existing Weblogic install to
perform this step. Go to the $MW_HOME/wlserver/server/lib directory and issue the following command:

mvn install:install-file -Dfile=wls-maven-plugin.jar -DpomFile=pom.xml

That installs the wls-maven-plugin into your local Maven repository. Now you can use it.

Note this step does only need to be done once. Once the plugin is in your local Maven repository
you can keep repeating step #2 below.

2. Use the Weblogic plugin

Add the following snippet to your POM


Note this blog entry assumes WLS 12.1.2, so replace it with the appropriate version where necessary.

Now in the root directory of the project you can issue the following to install Weblogic:

mvn -N

This will install Weblogic into the directories specified in the above properties section.


Related Topics >>