Class DeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="deploy",
requiresProject=false,
defaultPhase=DEPLOY)
public class DeployMojo
extends LegacyDeployMojo
Deploy an application to Cloudhub or On-Prem/Hybrid
-
Field Summary
Fields Modifier and Type Field Description static StringANYPOINT_DEPLOY_PROPERTIESstatic StringCLOUDHUBprotected StringfileFile to deploy (only needed when invoking standalone without a valid pom).protected StringfilenameFilename (if not specified the file's name will be used)protected Map<String,String>filePropertiesProperties that should be inserted into a property file in the application archiveprotected StringfilePropertiesPathLocation of property file to inserted with values specified infilePropertiesprotected booleanfilePropertiesSecureIf set to true, all secure properties will be inserted infilePropertiesrather than in Runtime Manager.protected booleanforceIf true, will force deployment even if same already application was already deployed.protected booleanignoreMissingPropertyFileIgnore missing application properties fileprotected BooleaninjectEnvInfoSpecified if environment info should be injectedprotected Map<String,String>propertiesApplication propertiesprotected FilepropertyfileApplication property fileprotected booleanskipDeployIf true deployment will be skippedprotected booleanskipProvisioningIf true API provisioning will be skippedprotected booleanskipWaitIf true will skip wait for application to start (successfully or not)protected StringtargetAnypoint target name (Server / Server Group / Cluster).static StringVARprotected Map<String,String>varsProvisioning variablesFields inherited from class com.aeontronix.enhancedmule.tools.LegacyDeployMojo
appName, appNameCHPrefix, appNameCHSuffix, appNameCHSuffixNPOnly, clustered, cpuLimit, cpuReserved, customlog4j, deployRetryDelay, deployTimeout, enforceDeployingReplicasAcrossNodes, extMonitoring, forwardSslSession, httpInboundPublicUrl, jvmArgs, lastMileSecurity, memoryLimit, memoryReserved, mergeExistingProperties, mergeExistingPropertiesOverride, objectStoreV1, persistentQueues, persistentQueuesEncrypted, region, replicas, rtfRuntimeVersion, staticIPs, updateStrategy, workerCount, workerTypeFields inherited from class com.aeontronix.enhancedmule.tools.AbstractAnypointMojo
ACCESSTOKEN_ID, ACCESSTOKEN_SECRET, accessTokenId, accessTokenSecret, BEARER_TOKEN_PROPERTY, bearerToken, DEFAULT_EMSERVER_URL, EM_CLIENT, emClient, enhancedMuleServerUrl, org, password, profile, project, session, settings, username -
Constructor Summary
Constructors Constructor Description DeployMojo() -
Method Summary
Modifier and Type Method Description protected voiddoExecute()Methods inherited from class com.aeontronix.enhancedmule.tools.AbstractEnvironmentalMojo
getEnvironmentMethods inherited from class com.aeontronix.enhancedmule.tools.AbstractOrganizationalMojo
getOrganizationMethods inherited from class com.aeontronix.enhancedmule.tools.AbstractAnypointMojo
execute, findPrefixProperties, findPrefixProperties, getClient, getEmClient, getProperty
-
Field Details
-
ANYPOINT_DEPLOY_PROPERTIES
- See Also:
- Constant Field Values
-
VAR
- See Also:
- Constant Field Values
-
CLOUDHUB
- See Also:
- Constant Field Values
-
skipProvisioning
@Parameter(property="emt.skipProvisioning") protected boolean skipProvisioningIf true API provisioning will be skipped -
skipDeploy
@Parameter(property="anypoint.deploy.skip") protected boolean skipDeployIf true deployment will be skipped -
file
File to deploy (only needed when invoking standalone without a valid pom). To deploy from exchange use uri in the format ofexchange://[orgId]:[groupId]:[artifactId]:[version]
orexchange://[groupId]:[artifactId]:[version]
-
filename
Filename (if not specified the file's name will be used) -
properties
@Parameter(property="anypoint.deploy.properties", required=false) protected Map<String,String> propertiesApplication properties -
propertyfile
Application property file -
ignoreMissingPropertyFile
@Parameter(property="anypoint.deploy.propertyfile.ignoremissing", required=false) protected boolean ignoreMissingPropertyFileIgnore missing application properties file -
fileProperties
@Parameter(property="anypoint.deploy.fileproperties", required=false) protected Map<String,String> filePropertiesProperties that should be inserted into a property file in the application archive- See Also:
filePropertiesPath
-
filePropertiesPath
@Parameter(property="anypoint.deploy.fileproperties.path", required=false, defaultValue="config.properties") protected String filePropertiesPathLocation of property file to inserted with values specified infileProperties -
filePropertiesSecure
@Parameter(property="anypoint.deploy.fileproperties.secure", required=false, defaultValue="false") protected boolean filePropertiesSecureIf set to true, all secure properties will be inserted infilePropertiesrather than in Runtime Manager. -
vars
Provisioning variables -
injectEnvInfo
@Parameter(property="anypoint.deploy.injectEnvInfo", defaultValue="true") protected Boolean injectEnvInfoSpecified if environment info should be injected -
force
@Parameter(property="anypoint.deploy.force") protected boolean forceIf true, will force deployment even if same already application was already deployed. -
skipWait
@Parameter(property="anypoint.deploy.skipwait") protected boolean skipWaitIf true will skip wait for application to start (successfully or not) -
target
Anypoint target name (Server / Server Group / Cluster). If not set will deploy to Cloudhub
-
-
Constructor Details
-
DeployMojo
public DeployMojo()
-
-
Method Details
-
doExecute
- Specified by:
doExecutein classAbstractAnypointMojo- Throws:
Exception
-