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</