Class DeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.aeontronix.enhancedmule.tools.AbstractAnypointMojo
com.aeontronix.enhancedmule.tools.AbstractOrganizationalMojo
com.aeontronix.enhancedmule.tools.AbstractEnvironmentalMojo
com.aeontronix.enhancedmule.tools.DeployMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="deploy",
requiresProject=false,
defaultPhase=DEPLOY)
public class DeployMojo
extends AbstractEnvironmentalMojo
Deploy an application to Cloudhub or On-Prem/Hybrid
-
Field Summary
Fields Modifier and Type Field Description static StringANYPOINT_DEPLOY_PROPERTIESprotected StringappNameApplication nameprotected longdeployRetryDelayDelay (in milliseconds) in retrying a deploymentprotected longdeployTimeoutDeployment timeoutprotected 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 Map<String,String>propertiesApplication propertiesprotected FilepropertyfileApplication property fileprotected booleanskipApiProvisioningIf true API provisioning will be skippedprotected booleanskipDeployIf true deployment will be skippedprotected booleanskipWaitIf true will skip wait for application to start (successfully or not)protected ApplicationSourcesourceprotected HashMap<String,String>varsProvisioning variablesFields inherited from class com.aeontronix.enhancedmule.tools.AbstractAnypointMojo
bearer, clientId, clientSecret, password, username -
Constructor Summary
Constructors Constructor Description DeployMojo() -
Method Summary
Modifier and Type Method Description protected DeploymentResultdeploy(Environment environment, @NotNull APIProvisioningConfig apiProvisioningConfig, @NotNull DeploymentConfig deploymentConfig)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, getClient
-
Field Details
-
ANYPOINT_DEPLOY_PROPERTIES
- See Also:
- Constant Field Values
-
skipApiProvisioning
@Parameter(property="anypoint.api.provisioning.skip") protected boolean skipApiProvisioningIf 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) -
appName
Application name -
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) -
deployTimeout
@Parameter(property="anypoint.deploy.timeout") protected long deployTimeoutDeployment timeout -
deployRetryDelay
@Parameter(property="anypoint.deploy.retrydelay") protected long deployRetryDelayDelay (in milliseconds) in retrying a deployment -
properties
@Parameter(property="anypoint.deploy.properties", required=false) protected Map<String,String> propertiesApplication properties -
propertyfile
Application property 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 -
source
-
-
Constructor Details
-
DeployMojo
public DeployMojo()
-
-
Method Details
-
deploy
protected DeploymentResult deploy(Environment environment, @NotNull @NotNull APIProvisioningConfig apiProvisioningConfig, @NotNull @NotNull DeploymentConfig deploymentConfig) throws Exception- Throws:
Exception
-
doExecute
- Specified by:
doExecutein classAbstractAnypointMojo- Throws:
Exception
-