Skip to content

Instantly share code, notes, and snippets.

@jalex19100
Last active November 11, 2015 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jalex19100/6dc574538bd7d9ba3f43 to your computer and use it in GitHub Desktop.
Save jalex19100/6dc574538bd7d9ba3f43 to your computer and use it in GitHub Desktop.
Maven Weblogic Deploy plugin
@REM store user credentials
@REM setDomainEnv.cmd only seems to work when you are in the same PWD
C:\Oracle\middleware\user_projects\domains\base_domain\bin>setDomainEnv.cmd
C:\Oracle\middleware\user_projects\domains\base_domain>java weblogic.WLST
wls:/offline> connect ('myUserid','myPassword','t3s://localhost:7001');
wls:/CLUSTERNAME/serverConfig> storeUserConfig(userConfigFile='wls.local.config', userKeyFile='wls.local.key');
@Deploying with maven weblogic plugin
mvn weblogic:wlst -nsu -Penv-local -DfileName=etc\redeploy.py -DfailOnError=false -Dargs="${wls.userConfigFile} ${wls.userKeyFile} ${wls.adminurl}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment