OMS build and weblogic deploy using command line

By | 11/24/2020

OMS build and weblogic deploy using command line

As developer we may need to perform build and deployment many times. Created below .cmd files for build and deployment. So that developer not required to perform deployment from Oracle console.

Create new file buildear.cmd and add below lines. Make sure to edit the folder paths as per your computer.

ECHO OFF
 E:
 cd E:\OMS95\bin 
 set CLASSPATH=.;E:\Oracle\Middleware\Oracle_Home\wlserver\server\lib\weblogic.jar
 buildear.cmd -Dappserver=weblogic -Dwarfiles=smcfs -Dearfile=smcfs.ear -Dnowebservice=true -Ddevmode=true -Dnodocear=true -Dwls-10=true create-ear
 ECHO OFF
 PAUSE

Create new file deploy.cmd and add below lines. Make sure to edit the folder paths as per your computer.

ECHO OFF
 E:
 cd E:\OMS95\bin 
 set CLASSPATH=.;E:\Oracle\Middleware\Oracle_Home\wlserver\server\lib\weblogic.jar
 xcopy E:\OMS95\external_deployments\smcfs.ear C:\deploy\smcfs.ear /Y
 E:\Oracle\java\jdk1.7.0_79\bin\java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password ******* -undeploy -name smcfs -targets AdminServer 
 E:\Oracle\java\jdk1.7.0_79\bin\java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password ******* -deploy -name smcfs -targets AdminServer -source C:\deploy\smcfs.ear 
 E:\Oracle\java\jdk1.7.0_79\bin\java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password ******** -listapps
 PAUSE

Hope this helps developers. Any questions please email to support@activekite.com

Lets learn together. Happy learning

Never stop reading/learning.

Leave a Reply

Your email address will not be published. Required fields are marked *