WebLogic Server Maven Plugin

WebLogic Server Maven Plugin provides capabilities to install the Server, configure a domain, compile and deploy applications.

Coordinates

groupId: com.oracle.weblogic

artifactId: wls-maven-plugin

version:12.1.1.0

Goals summary

GoalDescription
appcThe appc compiler generates and compiles the classes needed to deploy EJBs and JSPs to WebLogic Server. It also validates the deployment descriptors for compliance with the current specifications at both the individual module level and the application level.
deployTo deploy a weblogic server application (supports all formats WAR,JAR etc..)
create-domainCreate a domain for WebLogic Server using the default domain template. For more complex domain creation use the WLST goal.
helpProvides a list of all the goals supported by the wls-maven-plugin
installInstall WebLogic Server
list-appsLists the deployment names for applications and stand-alone modules deployed distributed, or installed to the domain
redeployRedeploys a running application or part of a running application
start-appStarts an application deployed on weblogic server.
start-serverStart WebLogic Server
stop-appStops an application
stop-serverStop Weblogic Server
undeployUndeploys the application from weblogic server. Stops the deployment unit and removes staged files from target servers
update-appUpdates an application's deployment plan by redistributing the plan files and reconfiguring the application based on the new plan contents.
wlstWLST wrapper for Maven

Plugin description

The latest version of this html file can be located inside the wls-maven-plugin.jar or WebLogic Server documentation.

The WebLogic Server maven plugin is located under "${MW_HOME}/wlserver*/server/lib" folder of the server installation.


    wls-maven-plugin.jar
    pom.xml

Installing the plugin to a local repository

  $ cd $MW_HOME/wlserver*/server/lib

  $ mvn install (this ensures that the plugin has the proper 'wls' prefix)

  $ mvn install:install-file -Dfile="wls-maven-plugin.jar"

Uploading the plugin to a remote repository

  $ cd $MW_HOME/wlserver*/server/lib

  $ mvn deploy:deploy-file \
      -Dfile=wls-maven-plugin.jar \
      -Durl=http://host:port/url-to-remote-repo \
      -DrepositoryId=your-repo-id \
      -DpomFile=pom.xml

Plugin prefix
(Installs the dev zip distro at a http url to location /home/myhome/mywls) The WebLogic Server Maven Plugin can be prefixed as 'wls' for ease of use. Installing the plugin in the local repository with the afore mentioned steps will result in the setup of a proper prefix. In the case the plugin prefix isn't working properly, you can configure the prefix in your Maven settings.xml file as below

  <pluginGroups>
    <pluginGroup> org.codehaus.modello </pluginGroup>
  </pluginGroups>

You can always use the full coordinates if you don't intend to use the prefix or can't setup the prefix.

  $ mvn com.oracle.weblogic:wls-maven-plugin:help

Usage
After the plugin is installed you can use the 'help' goal for usage of the plugin goals.

$ mvn wls:help
$ mvn wls:help -Dgoal="install" -Ddetail="true"


Goal Name: appc

The appc compiler generates and compiles the classes needed to deploy EJBs and JSPs to WebLogic Server. It also validates the deployment descriptors for compliance with the current specifications at both the individual module level and the application level.

NameTypeRequiredDescription
altappddjava.lang.StringfalseLocation of the alternate application deployment descriptor.
altwlsappddjava.lang.StringfalseLocation of the alternate WebLogic application deployment descriptor.
basicClientJarbooleanfalseDo not include deployment descriptors in client jars generated for EJBs.
Default value is: false
classpathjava.lang.StringfalseAdd a list of comma separated directories that make up the desired CLASSPATH. Include directories containing any classes required by the JSP.
clientJarOutputDirjava.lang.StringfalseSpecifies a directory to put generated client jars.
commentarybooleanfalseCauses the JSP compiler to include comments from the JSP in the generated HTML page. If this option is omitted, comments do not appear in the generated HTML page.
Default value is: false
compilerjava.lang.StringfalseSpecifies the Java compiler to be used to compile the class file from the generated Java source code. The default compiler used is javac. The Java compiler program should be in your PATH unless you specify the absolute path to the compiler explicitly.
compilerClassjava.lang.Stringfalse<com.sun.tools.javac.Main> Compiler class to invoke.
continueCompilationbooleanfalseContinues compilation even when there are errors in jsp.
Default value is: false
debugbooleanfalseCompile debugging info into class file.
Default value is: false
deprecationbooleanfalseWarn about the use of deprecated methods in the generated Java source file when compiling the source file into a class file.
Default value is: false
destdirjava.io.FilefalseSpecifies the destination of the compiled output (that is, the class file). Use this option as a shortcut for placing the compiled classes in a directory that is already in your CLASSPATH.
enableHotCodeGenbooleanfalse
Default value is: false
forceGenerationbooleanfalseForce generation of EJB and JSP classes. Without this flag the classes may not be regenerated if it is determined to be unnecessary.
Default value is: false
idlbooleanfalseGenerate idl for EJB remote interfaces
Default value is: false
Default value is: false
Default value is: false
Default value is: false
Default value is: false
Default value is: false
Default value is: false
Default value is: false
idlDirectoryjava.lang.StringfalseSpecify the directory where IDL files will be created (default : target directory or jar
idlFactoriesbooleanfalseGenerate factory methods for valuetypes.
Default value is: false
idlMethodSignaturesjava.lang.StringfalseSpecify the method signatures used to trigger idl code generation.
idlNoAbstractInterfacesbooleanfalseDo not generate abstract interfaces and methods/attributes that contain them.
Default value is: false
idlNoValueTypesbooleanfalseDo not generate valuetypes and methods/attributes that contain them.
Default value is: false
idlOrbixbooleanfalseGenerate IDL somewhat compatible with Orbix 2000 2.0 C++.
Default value is: false
idlOverwritebooleanfalseAlways overwrite existing IDL files.
Default value is: false
idlVerbosebooleanfalseDisplay verbose information for IDL generation.
Default value is: false
idlVisibrokerbooleanfalseGenerate IDL somewhat compatible with visibroker 4.5 C++.
Default value is: false
ignorePlanValidationbooleanfalseIgnore the plan file if it doesn't exist.
iiopbooleanfalseGenerate CORBA stubs for EJBs.
Default value is: false
iiopDirectoryjava.lang.StringfalseSpecify the directory where IIOP stub files will be written (default : target directory or jar
keepgeneratedbooleanfalseKeep the generated .java files.
Default value is: false
librariesjava.lang.Stringfalsecomma-separated list of libraries.
librarydirjava.io.FilefalseRegisters all files in specified directory as libraries.
lineNumbersbooleanfalseAdd JSP line numbers to generated class files to aid in debugging.
Default value is: false
manifestjava.io.FilefalseInclude manifest information from specified manifest file.
maxfilesjava.lang.IntegerfalseMaximum number of generated java files to be compiled at one time.
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
noexitbooleanfalse
Default value is: true
normibooleanfalsePassed through to Symantec's sj.
Default value is: false
nowarnbooleanfalseCompile without warnings.
Default value is: false
nowritebooleanfalseSends the output to stdout instead of writeLicense.txt
Default value is: false
optimizebooleanfalseCompile with optimization on.
Default value is: false
outputjava.io.Filefalse
planjava.io.FilefalseSpecifies an optional deployment plan.
quietbooleanfalseTurns off output except for errors.
runtimeFlagsjava.lang.StringfalseTakes a list of options that are passed to your compiler.
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
sourcejava.io.FilefalseThe source location to be compiled.
Default value is: ${project.build.directory}/${project.artifactId}.${project.packaging}
sourceVersionjava.lang.StringfalseSource version.
supressCompilerbooleanfalse
Default value is: true
targetVersionjava.lang.StringfalseTarget version.
verbosebooleanfalsePasses the verbose flag to the Java compiler specified with the compiler flag. See the compiler documentation for more information.
Default value is: false
Default value is: false
verboseJavacbooleanfalseEnable Java compiler verbose output.
Default value is: false
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.
writeInferredDescriptorsbooleanfalseWrite out the descriptors with inferred information including annotations.
Examples:

Goal Name: deploy

To deploy a weblogic server application (supports all formats WAR,JAR etc..)

NameTypeRequiredDescription
adminurljava.lang.StringfalseThe -adminurl value must specify the listen address and listen port of the Administration Server.
advancedbooleanfalsePrint advanced usage options.
debugbooleanfalse Display debug level messages to the standard output.
Default value is: false
enableSecurityValidationbooleanfalseEnables validation of security data.
Default value is: false
examplesbooleanfalseDisplays example usage of this tool.
external_stagebooleanfalseIndicates that the user wants to copy the application in the server staging area externally or using a third-party tool.When specified, WebLogic Server looks for the application under "StagingDirectoryName (of target server)/applicationName."
Default value is: false
failOnErrorbooleanfalseBoolean value to force the Mojo to fail the build upon encountering an error if it would otherwise just log the error
Default value is: true
idjava.lang.StringfalseOptional client supplied unique identifier for the deployment task.
Default value is: false
Default value is: ${basedir}/Oracle/Software
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
namejava.lang.StringfalseSpecifies the deployment name to assign to a newly-deployed application or stand-alone module.
nostagebooleanfalseThis application will not be staged and deployed from the source location. When specified, the application must be available at the location provided in the "-source" option on all target servers. Default: "nostage" for admin server and "stage" for managed server targets.
noversionbooleanfalseIndicates that weblogic.Deployer should ignore all version related code paths on the Administration Server.
Default value is: false
nowaitbooleanfalseThis option is used to initiate multiple tasks and then monitor them later with the -list action.
passwordjava.lang.StringfalsePassword of the Administrator user.
planjava.lang.Stringfalse<Deployment plan path> Specifies location of deployment plan.
purgetasksbooleanfalseFlush out deploymenttasks that are retired java weblogic.Deployer -adminurl url -username username -password password -purgetasks
remotebooleanfalseIndicates that the tool is not running on the same machine as the admin server and the "-source" path is the actual path on the server. By default, this tool assumes any "-source" path to be valid on the local machine. In that case, the "-upload" option must be used if the tool needs to copy the application over to the admin server.
retiretimeoutjava.lang.Integerfalse<The retirement timeout in seconds> The retirement timeout in seconds for timeout retirement policy. If not specified, graceful retirement policy is assumed.
Default value is: -1
securityModeljava.lang.Stringfalse<DDOnly|CustomRoles|CustomRolesAndPolicies|Advanced> Security model to be used for this deployment.
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
sourcejava.lang.StringfalseThe address of the artifact. This can be one of the following - 1.) A file or directory on the local system, can be an exploded archive 2.) A ':' separated maven coordinates of the form (groupId:artifactId:packaging:classifier:version)
Default value is: ${project.build.directory}/${project.build.finalName}.${project.packaging}
stagebooleanfalseIndicates that the application needs to be copied into the target server staging area before deployment. Default: "nostage" for admin server and "stage" for managed server targets.
Default value is: false
submoduletargetsjava.lang.Stringfalse<submod@mod-jms.xml@target | submoduleName@target> SubModule level targets for JMS Modules.
targetsjava.lang.StringfalseA comma separated list of targets for the current operation. If not specified, all configured targets are used. For a new application, the default target is the administration server.
timeoutjava.lang.IntegerfalseMaximum time, in seconds, to wait for the deployment task to complete.
Default value is: -1
Default value is: -1
uploadbooleanfalseCauses the specified source file(s) to be transferred to the administration server. This is used when the Deployer tools is not being used on the same machine as the administration server or the user does not otherwise have access to place the targeted files on the administration server.
Default value is: false
userjava.lang.StringfalseAdministrator username
userConfigFilejava.lang.StringfalseLocation of a user configuration file to use for the administrative username and password. Instead of using user and password directly.
userKeyFilejava.lang.StringfalseSpecifies the location of a user key file to use for encrypting and decrypting the username and password stored in a user configuration file.
verbosebooleanfalseDisplays additional status during the deployment process.
Default value is: false
versionbooleanfalsePrints version information.
Default value is: false
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: create-domain

Create a domain for WebLogic Server using the default domain template. For more complex domain creation use the WLST goal.

NameTypeRequiredDescription
domainHomejava.lang.StringfalseLocation of WLS domain
Default value is: ${basedir}/Oracle/Domains/mydomain
domainTemplatejava.lang.StringfalseThe domain template file to use for creating the domain. Defaults to the the default domain template included in WLS.
failOnDomainExistsbooleanfalseBoolean value specifying if the application's build should fail when domain already exists at domainHome. The default value is false. When failOnDomainExists is false, returns build successful without overwriting existing domainHome. If failOnDomainExists is true, returns build unsuccessful throwing an exception.
Default value is: false
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
passwordjava.lang.StringtruePassword for adminstrator user.
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
userjava.lang.StringtrueUsername for adminstrator user.
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: help

Provides a list of all the goals supported by the wls-maven-plugin

NameTypeRequiredDescription
detailbooleanfalsePrint detailed help of goals
Default value is: false
goaljava.lang.StringfalsePrint help of a specific goal. When not set displays help of all goals.

Goal Name: install

Install WebLogic Server

NameTypeRequiredDescription
artifactLocationjava.lang.StringtrueThe address of the artifact. This can be one of the following - 1) A ':' separated maven coordinates of the form (groupId:artifactId:packaging:classifier:version) 2) A file on the local system (/home/prash/myapps/helloworld.war)3) A remote http url (http://foo/a/b.zip)
domainHomejava.lang.StringfalseLocation of WLS domain
Default value is: ${basedir}/Oracle/Domains/mydomain
installCommandjava.lang.StringfalseThe command to use to install the product when using an 'executable' installer. The following macros are supported - @INSTALLER_FILE@ - the path to the installer file, @JAVA_HOME@ - path to the java home. eg: @JAVA_HOME@ -Xms512m -Xmx1024m -jar @INSTALLER_FILE@ one two
localRepositoryorg.apache.maven.artifact.repository.ArtifactRepositorytrueThe absolute path of a local maven repository.
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software

Examples:


    $ mvn wls:install -DmiddlewareHome=/home/myhome/mywls -DartifactLocation=/home/myhome/wls1211_dev.zip
    (Installs the dev zip distro from local file /home/myhome/wls1211_dev.zip to location /home/myhome/mywls)

    $ mvn wls:install -DmiddlewareHome=/home/myhome/mywls -DartifactLocation=http://myhost/foo/bar/wls1211_dev.zip
    (Installs the dev zip distro from a remote http url to location /home/myhome/mywls)

    $ mvn wls:install -DmiddlewareHome=/home/myhome/mywls -DartifactLocation=com.foo.bar:wls-installers:12.1.1.0
    (Installs the dev zip distro from a local/remote maven repo to location /home/myhome/mywls)


The following shows a snippet of pom.xml which performs the installation.

  <build>
    <plugins>  
      <plugin>
        <groupId>com.oracle.weblogic</groupId>
        <artifactId>wls-maven-plugin</artifactId>
        <version>12.1.1.0</version>
          <executions>
            <execution>
              <phase>pre-integration-test</phase>
              <goals> <goal>install</goal> </goals>
            </execution>
          </executions>
          <configuration>
            <artifactLocation>http://myhost/foo/bar/wls1211_dev.zip</artifactLocation>
            <middlewareHome>/home/myhome/mywls</middlewareHome>
          </configuration>
        </plugin>
      </plugins>
  </build>


Goal Name: list-apps

Lists the deployment names for applications and stand-alone modules deployed distributed, or installed to the domain

NameTypeRequiredDescription
adminurljava.lang.StringfalseThe -adminurl value must specify the listen address and listen port of the Administration Server.
advancedbooleanfalsePrint advanced usage options.
debugbooleanfalse Display debug level messages to the standard output.
Default value is: false
examplesbooleanfalseDisplays example usage of this tool.
failOnErrorbooleanfalseBoolean value to force the Mojo to fail the build upon encountering an error if it would otherwise just log the error
Default value is: true
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
noversionbooleanfalseIndicates that weblogic.Deployer should ignore all version related code paths on the Administration Server.
Default value is: false
nowaitbooleanfalseThis option is used to initiate multiple tasks and then monitor them later with the -list action.
passwordjava.lang.StringfalsePassword of the Administrator user.
purgetasksbooleanfalseFlush out deploymenttasks that are retired java weblogic.Deployer -adminurl url -username username -password password -purgetasks
remotebooleanfalseIndicates that the tool is not running on the same machine as the admin server and the "-source" path is the actual path on the server. By default, this tool assumes any "-source" path to be valid on the local machine. In that case, the "-upload" option must be used if the tool needs to copy the application over to the admin server.
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
timeoutjava.lang.IntegerfalseMaximum time, in seconds, to wait for the deployment task to complete.
Default value is: -1
userjava.lang.StringfalseAdministrator username
userConfigFilejava.lang.StringfalseLocation of a user configuration file to use for the administrative username and password. Instead of using user and password directly.
userKeyFilejava.lang.StringfalseSpecifies the location of a user key file to use for encrypting and decrypting the username and password stored in a user configuration file.
verbosebooleanfalseDisplays additional status during the deployment process.
Default value is: false
versionbooleanfalsePrints version information.
Default value is: false
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: redeploy

Redeploys a running application or part of a running application

NameTypeRequiredDescription
adminurljava.lang.StringfalseThe -adminurl value must specify the listen address and listen port of the Administration Server.
deleteFilesjava.lang.Stringfalse Causes the server to remove the files that are specified in the file list and leave the application activated. This option is valid only for unarchived Web applications.
examplesbooleanfalseDisplays example usage of this tool.
failOnErrorbooleanfalseBoolean value to force the Mojo to fail the build upon encountering an error if it would otherwise just log the error
Default value is: true
idjava.lang.StringfalseOptional client supplied unique identifier for the deployment task.
Default value is: ${basedir}/Oracle/Software
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
namejava.lang.StringfalseSpecifies the deployment name to assign to a newly-deployed application or stand-alone module.
passwordjava.lang.StringfalsePassword of the Administrator user.
planjava.lang.Stringfalse<Deployment plan path> Specifies location of deployment plan.
remotebooleanfalseIndicates that the tool is not running on the same machine as the admin server and the "-source" path is the actual path on the server. By default, this tool assumes any "-source" path to be valid on the local machine. In that case, the "-upload" option must be used if the tool needs to copy the application over to the admin server.
retiretimeoutjava.lang.Integerfalse<The retirement timeout in seconds> The retirement timeout in seconds for timeout retirement policy. If not specified, graceful retirement policy is assumed.
Default value is: -1
rmiGracePeriodjava.lang.Integerfalse<The RMI grace period in seconds> Grace period for RMI requests during graceful shutdown. Can be used with -graceful option only. Default is no grace period.
Default value is: -1
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
sourcejava.lang.StringfalseThe address of the artifact. This can be one of the following - 1.) A file or directory on the local system, can be an exploded archive 2.) A ':' separated maven coordinates of the form (groupId:artifactId:packaging:classifier:version)
Default value is: ${project.build.directory}/${project.build.finalName}.${project.packaging}
submoduletargetsjava.lang.Stringfalse<submod@mod-jms.xml@target | submoduleName@target> SubModule level targets for JMS Modules.
targetsjava.lang.StringfalseA comma separated list of targets for the current operation. If not specified, all configured targets are used. For a new application, the default target is the administration server.
timeoutjava.lang.IntegerfalseMaximum time, in seconds, to wait for the deployment task to complete.
Default value is: -1
Default value is: -1
uploadbooleanfalseCauses the specified source file(s) to be transferred to the administration server. This is used when the Deployer tools is not being used on the same machine as the administration server or the user does not otherwise have access to place the targeted files on the administration server.
Default value is: false
userjava.lang.StringfalseAdministrator username
userConfigFilejava.lang.StringfalseLocation of a user configuration file to use for the administrative username and password. Instead of using user and password directly.
userKeyFilejava.lang.StringfalseSpecifies the location of a user key file to use for encrypting and decrypting the username and password stored in a user configuration file.
verbosebooleanfalseDisplays additional status during the deployment process.
Default value is: false
versionbooleanfalsePrints version information.
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: start-app

Starts an application deployed on weblogic server.

NameTypeRequiredDescription
adminmodebooleanfalse The administration mode. If not specified, production mode is assumed.
Default value is: false
adminurljava.lang.StringfalseThe -adminurl value must specify the listen address and listen port of the Administration Server.
advancedbooleanfalsePrint advanced usage options.
appversionjava.lang.Stringfalse<application version> The version identifier of the application. If not specified, the currently active version of the application is assumed.
debugbooleanfalse Display debug level messages to the standard output.
Default value is: false
domainHomejava.lang.StringfalseLocation of WLS domain
Default value is: ${basedir}/Oracle/Domains/mydomain
examplesbooleanfalseDisplays example usage of this tool.
failOnErrorbooleanfalseBoolean value to force the Mojo to fail the build upon encountering an error if it would otherwise just log the error
Default value is: true
idjava.lang.StringfalseOptional client supplied unique identifier for the deployment task.
Default value is: ${basedir}/Oracle/Software
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
namejava.lang.StringfalseSpecifies the deployment name to assign to a newly-deployed application or stand-alone module.
noversionbooleanfalseIndicates that weblogic.Deployer should ignore all version related code paths on the Administration Server.
Default value is: false
nowaitbooleanfalseThis option is used to initiate multiple tasks and then monitor them later with the -list action.
passwordjava.lang.StringfalsePassword of the Administrator user.
planversionjava.lang.Stringfalse <deployment plan version> The version identifier of the deployment plan. If not specified, the currently active version of the applications deployment plan is assumed.
purgetasksbooleanfalseFlush out deploymenttasks that are retired java weblogic.Deployer -adminurl url -username username -password password -purgetasks
remotebooleanfalseIndicates that the tool is not running on the same machine as the admin server and the "-source" path is the actual path on the server. By default, this tool assumes any "-source" path to be valid on the local machine. In that case, the "-upload" option must be used if the tool needs to copy the application over to the admin server.
retiretimeoutjava.lang.Integerfalse<The retirement timeout in seconds> The retirement timeout in seconds for timeout retirement policy. If not specified, graceful retirement policy is assumed.
Default value is: -1
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
submoduletargetsjava.lang.Stringfalse<submod@mod-jms.xml@target | submoduleName@target> SubModule level targets for JMS Modules.
targetsjava.lang.StringfalseA comma separated list of targets for the current operation. If not specified, all configured targets are used. For a new application, the default target is the administration server.
timeoutjava.lang.IntegerfalseMaximum time, in seconds, to wait for the deployment task to complete.
Default value is: -1
Default value is: -1
userjava.lang.StringfalseAdministrator username
userConfigFilejava.lang.StringfalseLocation of a user configuration file to use for the administrative username and password. Instead of using user and password directly.
userKeyFilejava.lang.StringfalseSpecifies the location of a user key file to use for encrypting and decrypting the username and password stored in a user configuration file.
verbosebooleanfalseDisplays additional status during the deployment process.
Default value is: false
versionbooleanfalsePrints version information.
Default value is: false
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: start-server

Start WebLogic Server

NameTypeRequiredDescription
command[Ljava.lang.String;falseThe startWebLogic script to execute. Defaults to startWebLogic.sh or startWebLogic.cmd based on platform
domainHomejava.lang.StringfalseLocation of WLS domain
Default value is: ${basedir}/Oracle/Domains/mydomain
httpPingUrljava.lang.StringfalseThe URL to ping to check if server is running
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
timeoutSecsjava.lang.IntegerfalseThe timeout for the script. Valid when waitForExit is 'true'. A '0' or negative value indicates that script will not timeout
Default value is: -1
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: stop-app

Stops an application

NameTypeRequiredDescription
adminmodebooleanfalse The administration mode. If not specified, production mode is assumed.
Default value is: false
adminurljava.lang.StringfalseThe -adminurl value must specify the listen address and listen port of the Administration Server.
advancedbooleanfalsePrint advanced usage options.
appversionjava.lang.Stringfalse<application version> The version identifier of the application. If not specified, the currently active version of the application is assumed.
debugbooleanfalse Display debug level messages to the standard output.
Default value is: false
domainHomejava.lang.StringfalseLocation of WLS domain
Default value is: ${basedir}/Oracle/Domains/mydomain
examplesbooleanfalseDisplays example usage of this tool.
failOnErrorbooleanfalseBoolean value to force the Mojo to fail the build upon encountering an error if it would otherwise just log the error
Default value is: true
gracefulbooleanfalse Graceful shutdown. If not specified, force shutdown is assumed.
idjava.lang.StringfalseOptional client supplied unique identifier for the deployment task.
Default value is: ${basedir}/Oracle/Software
ignoresessionsbooleanfalse Ignore pending HTTP sessions during graceful shutdown. Can be used with -graceful option only. Default is false.
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
namejava.lang.StringfalseSpecifies the deployment name to assign to a newly-deployed application or stand-alone module.
noversionbooleanfalseIndicates that weblogic.Deployer should ignore all version related code paths on the Administration Server.
Default value is: false
nowaitbooleanfalseThis option is used to initiate multiple tasks and then monitor them later with the -list action.
passwordjava.lang.StringfalsePassword of the Administrator user.
planversionjava.lang.Stringfalse <deployment plan version> The version identifier of the deployment plan. If not specified, the currently active version of the applications deployment plan is assumed.
purgetasksbooleanfalseFlush out deploymenttasks that are retired java weblogic.Deployer -adminurl url -username username -password password -purgetasks
remotebooleanfalseIndicates that the tool is not running on the same machine as the admin server and the "-source" path is the actual path on the server. By default, this tool assumes any "-source" path to be valid on the local machine. In that case, the "-upload" option must be used if the tool needs to copy the application over to the admin server.
rmiGracePeriodjava.lang.Integerfalse<The RMI grace period in seconds> Grace period for RMI requests during graceful shutdown. Can be used with -graceful option only. Default is no grace period.
Default value is: -1
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
submoduletargetsjava.lang.Stringfalse<submod@mod-jms.xml@target | submoduleName@target> SubModule level targets for JMS Modules.
targetsjava.lang.StringfalseA comma separated list of targets for the current operation. If not specified, all configured targets are used. For a new application, the default target is the administration server.
timeoutjava.lang.IntegerfalseMaximum time, in seconds, to wait for the deployment task to complete.
Default value is: -1
userjava.lang.StringfalseAdministrator username
userConfigFilejava.lang.StringfalseLocation of a user configuration file to use for the administrative username and password. Instead of using user and password directly.
userKeyFilejava.lang.StringfalseSpecifies the location of a user key file to use for encrypting and decrypting the username and password stored in a user configuration file.
verbosebooleanfalseDisplays additional status during the deployment process.
Default value is: false
versionbooleanfalsePrints version information.
Default value is: false
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: stop-server

Stop Weblogic Server

NameTypeRequiredDescription
adminurljava.lang.StringfalseURL for Admininistration Server
Default value is: t3://localhost:7001
command[Ljava.lang.String;falseThe startWebLogic script to execute. Defaults to stopWebLogic.sh or stopWebLogic.cmd based on platform
domainHomejava.lang.StringfalseLocation of WLS domain
Default value is: ${basedir}/Oracle/Domains/mydomain
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
outputLogjava.lang.StringfalseThe log file to redirect script output to. Will default stdout
passwordjava.lang.StringtruePassword for administrator user
timeoutSecsjava.lang.IntegerfalseThe timeout for the script. Valid when waitForExit is 'true'. A '0' or negative value indicates that script will not timeout
Default value is: -1
userjava.lang.StringtrueUsername for administrator user
waitForExitbooleanfalseShould wait for the process to exit or not. Defaults to true
Default value is: true
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.
workingDirjava.lang.StringfalseThe working directory for the script. Defaults to the current working directory.
Default value is: ${project.base.directory}

Goal Name: undeploy

Undeploys the application from weblogic server. Stops the deployment unit and removes staged files from target servers

NameTypeRequiredDescription
adminurljava.lang.StringfalseThe -adminurl value must specify the listen address and listen port of the Administration Server.
advancedbooleanfalsePrint advanced usage options.
appversionjava.lang.Stringfalse<application version> The version identifier of the application. If not specified, the currently active version of the application is assumed.
debugbooleanfalse Display debug level messages to the standard output.
Default value is: false
examplesbooleanfalseDisplays example usage of this tool.
failOnErrorbooleanfalseBoolean value to force the Mojo to fail the build upon encountering an error if it would otherwise just log the error
Default value is: true
gracefulbooleanfalse Graceful shutdown. If not specified, force shutdown is assumed.
idjava.lang.StringfalseOptional client supplied unique identifier for the deployment task.
Default value is: ${basedir}/Oracle/Software
ignoresessionsbooleanfalse Ignore pending HTTP sessions during graceful shutdown. Can be used with -graceful option only. Default is false.
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
namejava.lang.StringfalseSpecifies the deployment name to assign to a newly-deployed application or stand-alone module.
noversionbooleanfalseIndicates that weblogic.Deployer should ignore all version related code paths on the Administration Server.
Default value is: false
nowaitbooleanfalseThis option is used to initiate multiple tasks and then monitor them later with the -list action.
passwordjava.lang.StringfalsePassword of the Administrator user.
planversionjava.lang.Stringfalse <deployment plan version> The version identifier of the deployment plan. If not specified, the currently active version of the applications deployment plan is assumed.
purgetasksbooleanfalseFlush out deploymenttasks that are retired java weblogic.Deployer -adminurl url -username username -password password -purgetasks
remotebooleanfalseIndicates that the tool is not running on the same machine as the admin server and the "-source" path is the actual path on the server. By default, this tool assumes any "-source" path to be valid on the local machine. In that case, the "-upload" option must be used if the tool needs to copy the application over to the admin server.
rmiGracePeriodjava.lang.Integerfalse<The RMI grace period in seconds> Grace period for RMI requests during graceful shutdown. Can be used with -graceful option only. Default is no grace period.
Default value is: -1
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
submoduletargetsjava.lang.Stringfalse<submod@mod-jms.xml@target | submoduleName@target> SubModule level targets for JMS Modules.
targetsjava.lang.StringfalseA comma separated list of targets for the current operation. If not specified, all configured targets are used. For a new application, the default target is the administration server.
timeoutjava.lang.IntegerfalseMaximum time, in seconds, to wait for the deployment task to complete.
Default value is: -1
userjava.lang.StringfalseAdministrator username
userConfigFilejava.lang.StringfalseLocation of a user configuration file to use for the administrative username and password. Instead of using user and password directly.
userKeyFilejava.lang.StringfalseSpecifies the location of a user key file to use for encrypting and decrypting the username and password stored in a user configuration file.
verbosebooleanfalseDisplays additional status during the deployment process.
Default value is: false
versionbooleanfalsePrints version information.
Default value is: false
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: update-app

Updates an application's deployment plan by redistributing the plan files and reconfiguring the application based on the new plan contents.

NameTypeRequiredDescription
adminurljava.lang.StringfalseThe -adminurl value must specify the listen address and listen port of the Administration Server.
advancedbooleanfalsePrint advanced usage options.
appversionjava.lang.Stringfalse<application version> The version identifier of the application. If not specified, the currently active version of the application is assumed.
debugbooleanfalse Display debug level messages to the standard output.
Default value is: false
domainHomejava.lang.StringfalseLocation of WLS domain
Default value is: ${basedir}/Oracle/Domains/mydomain
examplesbooleanfalseDisplays example usage of this tool.
failOnErrorbooleanfalseBoolean value to force the Mojo to fail the build upon encountering an error if it would otherwise just log the error
Default value is: true
idjava.lang.StringfalseOptional client supplied unique identifier for the deployment task.
Default value is: ${basedir}/Oracle/Software
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
namejava.lang.StringfalseSpecifies the deployment name to assign to a newly-deployed application or stand-alone module.
noversionbooleanfalseIndicates that weblogic.Deployer should ignore all version related code paths on the Administration Server.
Default value is: false
nowaitbooleanfalseThis option is used to initiate multiple tasks and then monitor them later with the -list action.
passwordjava.lang.StringfalsePassword of the Administrator user.
planjava.lang.Stringfalse<Deployment plan path> Specifies location of deployment plan.
planversionjava.lang.Stringfalse <deployment plan version> The version identifier of the deployment plan. If not specified, the currently active version of the applications deployment plan is assumed.
purgetasksbooleanfalseFlush out deploymenttasks that are retired java weblogic.Deployer -adminurl url -username username -password password -purgetasks
remotebooleanfalseIndicates that the tool is not running on the same machine as the admin server and the "-source" path is the actual path on the server. By default, this tool assumes any "-source" path to be valid on the local machine. In that case, the "-upload" option must be used if the tool needs to copy the application over to the admin server.
rmiGracePeriodjava.lang.Integerfalse<The RMI grace period in seconds> Grace period for RMI requests during graceful shutdown. Can be used with -graceful option only. Default is no grace period.
Default value is: -1
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
submoduletargetsjava.lang.Stringfalse<submod@mod-jms.xml@target | submoduleName@target> SubModule level targets for JMS Modules.
targetsjava.lang.StringfalseA comma separated list of targets for the current operation. If not specified, all configured targets are used. For a new application, the default target is the administration server.
timeoutjava.lang.IntegerfalseMaximum time, in seconds, to wait for the deployment task to complete.
Default value is: -1
uploadbooleanfalseCauses the specified source file(s) to be transferred to the administration server. This is used when the Deployer tools is not being used on the same machine as the administration server or the user does not otherwise have access to place the targeted files on the administration server.
Default value is: false
userjava.lang.StringfalseAdministrator username
userConfigFilejava.lang.StringfalseLocation of a user configuration file to use for the administrative username and password. Instead of using user and password directly.
userKeyFilejava.lang.StringfalseSpecifies the location of a user key file to use for encrypting and decrypting the username and password stored in a user configuration file.
verbosebooleanfalseDisplays additional status during the deployment process.
Default value is: false
versionbooleanfalsePrints version information.
Default value is: false
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.

Goal Name: wlst

WLST wrapper for Maven

NameTypeRequiredDescription
argsjava.lang.StringfalseA string value containing command line arguments to pass to the WLST Python interpreter. The arguments are delimited by spaces.
debugbooleanfalseBoolean value specifying verbose option.
Default value is: false
executeScriptBeforeFilebooleanfalseBoolean value specifying whether the script, if supplied, executes before or after the file, if supplied. Either a file or a script is required, and both are allowed. See fileName and script parameters.
Default value is: true
failOnErrorbooleanfalseBoolean value specifying whether the application's build should fail if the WLST goal fails. The default value is true, and consequently any error condition will cause the build to fail. In some cases, setting failOnError to false will allow the WLST goal to ignore the error.
Default value is: true
fileNamejava.lang.StringfalseFile path of the WLST Python script to be executed. Either a fileName or a script parameter must be specified, and both are allowed.
middlewareHomejava.lang.StringfalseThe home directory for Oracle WebLogic Server or Fusion Middleware installation. Required unless WLS was installed in the default location selected by the WLS Maven Plugin's install goal.
Default value is: ${basedir}/Oracle/Software
propertiesFilejava.lang.StringfalsePath name to a Java properties file. The property names become defined variables in the WLST Python interpreter and are initialized to the values supplied. For example, if the properties file contains the line "foobar:Very important stuff", the variable foobar can be used in a Python statement in the following manner: "print('foobar has the value: ' + foobar)".
scriptjava.lang.StringfalseA string value specifying an inline WLST Python script, for example, "print('Hello, world!')".
serverClasspathjava.lang.StringfalseAdd additional jars and directories to the classpath making the resources and classes they contain available to the wls-maven-plugin.
weblogicHomejava.lang.StringfalseLocation of the WLS install. It can be an absolute path or relative to the 'middlewareHome'. This setting is optional, in the case where the defaults are used and the 'weblogicHome' is a child folder of 'middlewareHome'. If the user has more than one WebLogic Home, or if it is not a child folder of 'middlewareHome'it is mandatory to provide this value.