common-parameters.md

January 9, 2026 ยท View on GitHub

Common Parameters

Parameters shared by all goals.

ParameterDescriptionRequired
installDirectoryLocal installation directory of the Liberty server.Yes, only when runtimeArchive, runtimeArtifact, and install parameters are not set.
runtimeArchiveLocation of the Liberty server compressed archive. The archive will be unpacked into a directory as specified by the runtimeInstallDirectory parameter.Yes, only when installDirectory, runtimeArtifact, and install parameters are not set.
runtimeArtifactMaven artifact name of the Liberty runtime. The runtime will be installed into a directory as specified by the runtimeInstallDirectory parameter. The default runtime is the latest version of io.openliberty:openliberty-kernel.No
libertyRuntimeGroupIdLiberty runtime groupId to use instead of the runtimeArtifact groupId. This can also be specified with -Dliberty.runtime.groupId from the command line.No
libertyRuntimeArtifactIdLiberty runtime artifactId to use instead of the runtimeArtifact artifactId. This can also be specified with -Dliberty.runtime.artifactId from the command line.No
libertyRuntimeVersionLiberty runtime version to use instead of the runtimeArtifact version. This can also be specified with -Dliberty.runtime.version from the command line.No
installInstall Liberty runtime from the Liberty repository.Yes, only when installDirectory, runtimeArchive, and runtimeArtifact parameters are not set.
licenseArtifactMaven artifact name of the Liberty license jar. It will be used to upgrade the installation at the location specified by the runtimeInstallDirectory parameter.No
serverNameName of the Liberty server instance. The default value is defaultServer.No
userDirectoryAlternative user directory location that contains server definitions and shared resources. The default value is usr located in the Liberty runtime installation directory.No
outputDirectoryAlternative location for server generated output such as logs, the workarea directory, and other generated files (WLP_OUTPUT_DIR). The default value for the package and install-feature goals is ${project.build.directory}/liberty-alt-output-dir.No
runtimeInstallDirectoryLocal installation directory location of the Liberty server when the server is installed using the runtime archive, runtime artifact or repository option. The default value is ${project.build.directory}/liberty.No
refreshIf true, re-install Liberty server into the local directory. This is only used when when the server is installed using the runtime archive or runtime artifact option. The default value is false.No
skipIf true, the specified goal is bypassed entirely. The default value is false.No
jdkToolchainToolchain requirements (for example, version and vendor) used to select a JDK from ~/.m2/toolchains.xml for Liberty server goals and dev mode. See toolchain for details.No

Backward Compatibility

The following parameter names from version 2.x are still supported for backward compatibility, but the new parameter names listed above should be used:

2.x Parameter Name3.0+ Parameter Name
assemblyArchiveruntimeArchive
assemblyArtifactruntimeArtifact
assemblyInstallDirectoryruntimeInstallDirectory

See the version 3.0 migration guide for more information about parameter name changes.