In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This is oracle official website introduction through maven weblogic plug-in to automatically deploy war packages to weblogic 12c/11R
This is the official detail on how to deploy to weblogic using maven 12c http://docs.oracle.com/cd/E24329_01/web.1211/e24368/maven.htm#WLPRG585
I combine practical operations to explain how to automatically deploy to weblogic server through m2eclipse(maven)+ eclipse
Part 1: Setting up Eclipse
1 Make sure eclipse has m2eclipse installed
By clicking file-new -maven project
If the project is successfully displayed and created, the maven eclipse plug-in is installed
r
Create a maven web app project
3. The maven project structure after successful creation
4 Right-click on pom.xml file- run as maven- install
Part 2: Configuring maven weblogic plugin (difficult)
weblogic can be automatically deployed by maven if these two files are already available under weblogic
MW_HOME/wlserver_12.1/server/lib/wls-maven-plugin.jar
MW_HOME/wlserver_12.1/server/lib/pom.xml
Here's how to configure weblogic to include these two files
1 Navigate to C:/wls12120/wlserver/server/lib
2 Run in C:/wls12120/wlserver/server/lib
mvn installmvn install -Dfile=wls-maven-plugin.jar -DpomFile= pom. xml/* Copy pom.xml and wls-maven-plugin.jar to the following//depo/.m2/repository/com/oracle/weblogic/wls-maven-plugindirectory *//Execute mvn install:install-file -Dfile=wls-maven-plugin.jar -DpomFile=pom.xml
If successful, build success will be displayed and the lib directory will now have wls-maven-plugin.jar and pom.xml
verify the successful
C:\wls12120\wlserver\server\lib>mvn wls:help[INFO] Scanning for projects... [INFO][INFO] -----------------------------------------------------------------------[INFO] Building WebLogic Server Maven Plugin 12.1.2.0[INFO] -----------------------------------------------------------------------[INFO][INFO] --- wls-maven-plugin:12.1.2.0:help (default-cli) @ wls-maven-plugin ---[INFO]WebLogic Server Maven PluginThe following goals are supported by wls-maven-plugin:appc: Generates and compiles the classes needed to deploy EJBs and JSPs to WebLogic Server. Also validates the deployment descriptors for compliance with the current specifications at both the individual module level and the application level.deploy: Deploys WebLogic Server applications and modules. Supports all deployment formats, such as WAR, JAR, etc.create-domain: Create a domain for WebLogic Server using the default domain template. For more complex domain creation use the WLST goal.
Part 3: integrating eclipse and automated deployment
After the above two parts are completed, you can start integrating eclipse
1 Configure porm.xml under eclipse project
Modify the blank porm.xml under eclipse project to add the information code as follows
MavenWebStruts maven-plugin-plugin 2.3 wls org.apache.maven.plugins maven-compiler-plugin 1.7.0_13 1.7.0_13 false UTF-8 org.apache.maven.plugins maven-war-plugin 2.1.1 false org.apache.maven.plugins maven-surefire-plugin 2.11 true com.oracle.weblogic wls-maven-plugin 12.1.2.0 ${project.build.finalName} C:\wls12120 account t3://localhost:7001 password ${project.build.directory}/${project.build.finalName}.$ {project.packaging}
The point is to add com.oracle.weblogic plugin under.
Add the following label meanings
weblogic account
weblogic password
Position of war/ear
2 Deploying projects through eclipse
To test successful deployment, test wls plug-ins for availability
Right-click on porm.xml to run
[INFO] Building MavenWebStruts Maven Webapp 0.0.1-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO][INFO] --- wls-maven-plugin:12.1.2.0:help (default-cli) @ MavenWebStruts ---[INFO]WebLogic Server Maven PluginThe following goals are supported by wls-maven-plugin: appc:Generates and compiles the classes needed to deploy EJBs and JSPs toWebLogic Server. Also validates the deployment descriptors for compliancewith the current specifications at both the individual module level andthe application level. deploy:Deploys WebLogic Server applications and modules. Supports all deploymentformats, such as WAR, JAR, etc. create-domain:Create a domain for WebLogic Server using the default domain template.For more complex domain creation use the WLST goal. help:Lists all the goals supported by the wls-maven-plugin. install:Installs WebLogic Server. list-apps:Lists the deployment names for applications and standalone modulesdeployed, distributed, or installed in the domain. redeploy:Redeploys a running application or part of a running application. start-app:Starts an application deployed on WebLogic Server. start-server:Starts WebLogic Server. stop-app:Stops an application. stop-server:Stops WebLogic Server. undeploy:Undeploys the application from WebLogic Server. Stops the deployment unitand removes staged files from target servers. update-app:Updates an application's deployment plan by redistributing the plan filesand reconfiguring the application based on the new plan contents. wlst:WLST wrapper for Maven. ws-clientgen:A Maven goal to generate client web service artifacts from a WSDL ws-wsdlc:A Maven goal to generate a set of artifacts and a partial Javaimplementation of the Web service from a WSDL. ws-jwsc:A Maven goal to build a JAX-WS web service For detailed help on a goal, use -Dgoal= -Ddetail=true options. [INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 0.796 s[INFO] Finished at: 2015-08-27T15:50:03-05:00[INFO] Final Memory: 6M/112M[INFO] ------------------------------------------------------------------------
If the above information appears, the integration is successful
Finally start the server and run the following command.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.