老熟女激烈的高潮_日韩一级黄色录像_亚洲1区2区3区视频_精品少妇一区二区三区在线播放_国产欧美日产久久_午夜福利精品导航凹凸

重慶分公司,新征程啟航

為企業提供網站建設、域名注冊、服務器等服務

使用m2Eclipse通過maven自動部署webapp到weblogic12c

這是oracle 官網介紹通過maven weblogic plug-in 來自動部署war 包 到weblogic 12c/11R

網站建設哪家好,找創新互聯!專注于網頁設計、網站建設、微信開發、小程序開發、集團企業網站建設等服務項目。為回饋新老客戶創新互聯還提供了睢寧縣免費建站歡迎大家使用!

這是官方詳細介紹如何使用maven 部署到weblogic12c http://docs.oracle.com/cd/E24329_01/web.1211/e24368/maven.htm#WLPRG585

 本人結合實際操作來說明如何通過m2eclipse(maven)+ eclipse自動部署到weblogic 服務器

 

第一部分: 設置eclipse

 

1 確保eclipse 已經安裝了m2eclipse

通過點擊file-new -maven project

如果成功顯示并能創建項目,則表示maven eclipse 插件已經安裝了

使用m2Eclipse 通過 maven 自動部署webapp到weblogic 12c r

 

2 創建一個maven web app project

使用m2Eclipse 通過 maven 自動部署webapp到weblogic 12c

 

3 創建成功后的maven 項目結構

使用m2Eclipse 通過 maven 自動部署webapp到weblogic 12c

 

 

4 右鍵點擊pom.xml 文件 - run as maven- install

 

 

第二部分: 配置maven weblogic plugin (weblogic 插件)(難點)

 

weblogic 可以被maven自動部署的前提是在weblogic 下已經有這兩個文件

MW_HOME/wlserver_12.1/server/lib/wls-maven-plugin.jar

MW_HOME/wlserver_12.1/server/lib/pom.xml

 

下面展示如何配置從而是weblogic 下包含這兩個文件

1 定位到C:/wls12120/wlserver/server/lib

 

2 在C:/wls12120/wlserver/server/lib目錄下運行

mvn install
mvn install -Dfile=wls-maven-plugin.jar -DpomFile=pom.xml
 
/*復制pom.xml 和wls-maven-plugin.jar 到以下//depo/.m2/repository/com/oracle/weblogic/wls-maven-plugin 目錄 
*/
//執行  
  mvn install:install-file -Dfile=wls-maven-plugin.jar -DpomFile=pom.xml

如果成功執行會顯示build success 并且此時lib 目錄下面多了wls-maven-plugin.jar 和pom.xml

驗證是否成功

  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 Plugin
The 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.

 

 

 

第三部分: 整合eclipse 和 自動部署

上述兩部分完成后, 可以開始整合eclipse

1 配置eclipse 項目下的porm.xml

修改eclipse 項目下空白的porm.xml,添加信息代碼如下


    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
			
			賬戶
			t3://localhost:7001
			密碼
			${project.build.directory}/${project.build.finalName}.${project.packaging}

 
 
 
            
 
 
    
  

重點是是在下添加com.oracle.weblogic plugin.

補充以下一些標簽含義

weblogic賬戶

weblogic 密碼

表示war/ear的位置

 

2 通過eclipse 部署項目

為了測試是否能成功部署先測試wls 插件是否生效

右鍵點擊porm.xml 運行

使用m2Eclipse 通過 maven 自動部署webapp到weblogic 12c

[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 Plugin
The 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.
 
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 modules
deployed, 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 unit
and removes staged files from target servers.
 
update-app:
Updates an application's deployment plan by redistributing the plan files
and 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 Java
implementation 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] ------------------------------------------------------------------------

如果出現以上信息說明整合成功

 

最后啟動服務器,并且運行以下命令.

使用m2Eclipse 通過 maven 自動部署webapp到weblogic 12c

 


文章題目:使用m2Eclipse通過maven自動部署webapp到weblogic12c
文章鏈接:http://www.xueling.net.cn/article/pjiehi.html

其他資訊

在線咨詢
服務熱線
服務熱線:028-86922220
TOP
主站蜘蛛池模板: 亚洲午夜福利在线观看老司机 | 五月丁香六月狠狠爱综合 | 日本道在线视频 | 国产人成一区二区三区影院 | 精品麻豆入口免费 | 麻豆国产免费 | 夜夜夜夜夜夜爽噜噜噜噜噜噜 | 国产片一区二区 | 狠狠操在线视频 | 精品国产一区久久 | 国产一区二区三区四区五区精品 | 午夜麻豆| WWW.AV天堂.COM| 日本性色 | 91在现看 | 亚洲av首页在线 | 无码射肉在线播放视频 | 免费可以看的无遮挡AV | 亚洲高清国产精品 | 亚洲视屏在线观看 | 第84页国产精品 | 久久女性裸体无遮挡啪啪 | 免费精品国产福利片 | 97人人超碰 | A毛片终身免费观看网站 | 交换少妇隔壁呻吟 | 国产精品视频久久久久久 | 在线观看福利小视频 | 亚洲精品粉嫩美女一区 | 日韩一区二区三区高清免费看看 | 久久麻传媒亚洲av国产 | 国产精品免费自拍 | 九色PORNY真实丨国产18 | 日韩欧美国产免费 | 一本一本久久a久久精品综合麻豆 | 精品香蕉久久久爽爽 | 99久久久久成人国产免费 | 国产一级毛片在线 | 免费看欧美一级片 | 无套内射视频囯产 | 国产一区二区小视频 |