Automatic deployment of WebLogic via Maven-weblogic-plugin

Source: Internet
Author: User
Maven-weblogic-plugin Introduction

The Web container integration of Maven with Jetty, GlassFish, and so on is quite mature. But there are only two ways to support WebLogic.

One is Org.codehaus.mojo, the other is WebLogic, not open source.

This article describes how to use the WebLogic plugin and WebLogic integration.

1. Installation

First, you install the WebLogic server. Specific download Address http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html

2. Generate the packages that plugin relies on

A. Open terminal into {weblogic_home}/wlserver_10.3/server/lib, then run

Java-jar Wljarbuilder.jar-profile Weblogic-maven-plugin

The jar package that is used to generate Weblogic-maven-plugin,

B. Open this bag and find Weblogic-maven-plugin.jar\meta-inf\maven\com.oracle.weblogic\weblogic-maven-plugin\pom. XML.

Unzip the Pom.xml file into {weblogic_home}/wlserver_10.3/server/lib.

C. Then run the following command in terminal, the path remains in {Weblogic_home}/wlserver_10.3/server/lib

MVN install:install-file-dfile={weblogic_home}/wlserver_10.3/server/lib/weblogic-maven-plugin.jar-dpomfile= Pom.xml

When you see the build success. Indicates that a dependent package has been generated and can go to {user_home}/.m2\repository\com\oracle\weblogic\weblogic-maven-plugin\10.3.4

See if the jar package already exists.

4. Use of plugin

Add Plugin to your project

[XML]  View Plain  copy   <plugin>                    <groupId>com.oracle.weblogic</groupId>                   <artifactid >weblogic-maven-plugin</artifactId>                    <version>10.3.4</version>                    <configuration>                         <upload>true</upload>                        <action>deploy</action >                        <remote>false</remote>                        <verbose>true</verbose>                         <source>${project.build.directory}/${project.build.finalname}.${ project.packaging}</source>                        <name>${project.build.finalname}</name >                    </configuration>                </plugin>  

You can also add properties such as Adminurl,user,password,target in configuration. If you do not add, you can manually add the MAVEN command after the command.

to a complete

[XML] view plain copy <plugin> <groupId>com.oracle.weblogic</groupId> ;artifactid>weblogic-maven-plugin</artifactid> <version>10.3.4</

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.