Deployment parameters for toolkit-maven-plugin

更新时间:
复制 MD 格式

Configure the following parameters in your pom.xml to deploy or upgrade applications with toolkit-maven-plugin. Parameters are organized into three categories:

  • Environment (env) -- Region, package path, and endpoint settings.

  • Application (app) -- Application identity, release strategy, and batch controls.

  • Storage (oss) -- Object Storage Service (OSS) bucket and upload settings.

Environment parameters

Environment parameters control where and how the plug-in connects.

ParameterRequiredDescription
region_idYesRegion where the application is deployed. Example: cn-hangzhou.
jar_pathNoPath to the deployment package. Accepts absolute or relative paths. When specified, Maven does not need to package the application. Example: target/demo.jar.
endpointNoGateway point of presence (POP) for applications deployed on Apsara Stack. Not required for public cloud deployments.

Application parameters

Application parameters define the identity, release strategy, and batch behavior of a deployment.

ParameterRequiredDescription
app_idYesEDAS application ID.
release_typeNoPhased release mode. Valid values: 0 (automatic phased release), 1 (manual phased release).
package_versionNoVersion label for the deployment package. Default: a string composed of the pom.xml version and the creation timestamp, for example 1.0 (2018-09-27 19:00:00).
descNoFree-text description attached to this deployment.
group_idNoApplication instance group to deploy to. Default: all groups.
batchNoNumber of release batches. Default: 1. Maximum: 5.
batch_wait_timeNoWait time between consecutive batches, in minutes. Default: 0 (no wait).
stage_timeoutNoTimeout per stage of the change process, in minutes. Default: 5. If batch_wait_time is set, its value is automatically added to stage_timeout. The plug-in exits when any single stage exceeds this threshold.

How stage_timeout and batch_wait_time interact

The effective timeout per stage equals stage_timeout + batch_wait_time. For example, if stage_timeout is 5 and batch_wait_time is 2, each stage times out after 7 minutes. The plug-in terminates automatically when any stage exceeds this threshold.

Storage parameters

Storage parameters configure the OSS bucket used to upload your deployment package. EDAS provides a free OSS bucket by default, so these parameters are optional unless you use your own bucket.

ParameterRequiredDescription
region_idNoRegion of the OSS bucket. Default: same as the application region_id.
bucketNoBucket name. Default: the free OSS bucket provided by EDAS. Specify this parameter only when you use your own bucket.
keyNoUpload path inside the bucket. Supports the variables {region_id}, {app_id}, and {version}. Default: {region_id}/{app_id}/{version}. Example: pkgs/petstore/{version}/store.war.
access_key_idNoAccessKey ID for uploading to the specified OSS bucket. Not required when you use the free EDAS bucket.
access_key_secretNoAccessKey secret for uploading to the specified OSS bucket. Not required when you use the free EDAS bucket.
use_vpc_endpointNoUpload through the internal VPC endpoint instead of the public endpoint. Set to true to enable. Default: public endpoint.