Weblogic 12C Maven Plugin Install and Setup

Hi, there:

A good day to try out Weblogic 12c with JDK8. Just can’t wait to try those stream with lambdas!   — Wait, where do I get the maven plugin for WLS 12c???

Oracle doesn’t host the maven plugins in central place. But both the pom and jar files are in a folder comes with the server. Run this mvn to install the plugin, assuming the server is in c:\bea12c.

cd c:\bea12c\oracle_common\plugins\maven\com\oracle\maven\oracle-maven-sync\12.1.3>

mvn install:install-file -DpomFile=oracle-maven-sync-12.1.3.pom -Dfile=oracle-maven-sync-12.1.3.jar

The pom.xml has the something like the following …

<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>12.1.3-0-0</version>
<configuration>
<adminurl>t3://localhost:7001</adminurl>
<user>weblogic</user>
<password>weblogic</password>
<targets>myserver</targets>
<upload>true</upload>
<action>deploy</action>
<remote>false</remote>
<verbose>true</verbose>
<source>${basedir}/target/myapp.war</source>
<name>myapp.war</name>
</configuration>

Cheers!

-Tony

Advertisements

One thought on “Weblogic 12C Maven Plugin Install and Setup

  1. Excellent information tony. It worked for me. Just for the information, I am keeping complete plugin.

    com.oracle.weblogic
    weblogic-maven-plugin
    12.1.3-0-0

    t3://localhost:7001

    weblogic
    weblogic1
    myserver
    true
    true
    deploy
    false
    true
    <!– ${project.build.directory}/${project.build.finalName}.${project.packaging} –>
    Path to our war eg: c\xyz.war

    myappwar

    install

    deploy

    com.oracle
    mavensync
    12.1.3

    com.sun
    tools
    1.7

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s