stop.md

September 3, 2019 ยท View on GitHub

stop


Stop a Liberty server. The server instance must exist and must be running.

Additional Parameters

This goal supports common server parameters and common parameters.

ParameterDescriptionRequired
serverStopTimeoutDeprecated. This parameter is ignored.No
embeddedWhether the server is embedded in the Maven JVM. If the server is started in embedded mode, it must also be stopped in embedded mode. The default value is false.No

Example:

<plugin>
    <groupId>io.openliberty.tools</groupId>
    <artifactId>liberty-maven-plugin</artifactId>
    <executions>
        ...
        <execution>
            <id>stop-server</id>
            <phase>post-integration-test</phase>
            <goals>
                <goal>stop</goal>
            </goals>
        </execution>
        ...
    </executions>
    <configuration>
       <installDirectory>/opt/ibm/wlp</installDirectory>
       <serverName>test</serverName>
    </configuration>
</plugin>