I have always liked Maven due to its simplicity and being so powerful. One of the recent requirement needed deploying to a remote Weblogic server. Since I was using maven for dependency management and all other purposes maven is well known for, I decided to use it for remote deployment as well.
Following are the steps one need to follow to make this tick.
Step 1: Getting prerequisites ready
1. A working maven installation. If you don’t have, get that here
2. Weblogic server installation with a valid domain. Get that here
Step 2: Generate Weblogic maven plugin
cd to Oracle Middleware installation directory
For eg: cd MW_HOME/wlserver_XX.X/server/lib/
java -jar wljarbuilder.jar -profile weblogic-maven-plugin
Step 3: Get the pom file to the weblogic lib directory
jar xvf MW_HOME/wlserver_XX.X/server/lib/weblogic-maven-plugin.jar META-INF/maven/com.oracle.weblogic/weblogic-maven-plugin/pom.xml