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