Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.77 KB

run.md

File metadata and controls

35 lines (27 loc) · 1.77 KB

run


Start a Liberty server in the foreground. The run goal implicitly creates the server, installs features referenced by the server.xml file, and deploys the application before starting the Liberty server. Note: This goal is designed to be executed directly from the Maven command line.

Multiple Modules

The run goal is supported with multi module Maven projects in the same way as the dev goal but substitute dev for run in the examples. This will build the multi module project and start the Liberty server in the foreground, using Liberty configuration from the module that does not have other modules depending on it.

Additional Parameters

The following are the parameters supported by this goal in addition to the common server parameters and the common parameters.

The run goal will propagate changes from source to the server configuration.

Parameter Description Required
clean Clean all cached information on server start up. The default value is false. No
embedded Whether the server is embedded in the Maven JVM. If not, the server will run as a separate process. The default value is false. No

Example:

<plugin>
    <groupId>io.openliberty.tools</groupId>
    <artifactId>liberty-maven-plugin</artifactId>
    <configuration>
       <installDirectory>/opt/ibm/wlp</installDirectory>
       <serverName>test</serverName>
    </configuration>
</plugin>
$ mvn liberty:run