Class 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 Details

    • ANYPOINT_DEPLOY_PROPERTIES

      public static final String ANYPOINT_DEPLOY_PROPERTIES
      See Also:
      Constant Field Values
    • skipApiProvisioning

      @Parameter(property="anypoint.api.provisioning.skip") protected boolean skipApiProvisioning
      If true API provisioning will be skipped
    • skipDeploy

      @Parameter(property="anypoint.deploy.skip") protected boolean skipDeploy
      If true deployment will be skipped
    • file

      @Parameter(property="anypoint.deploy.file") protected String file
      File to deploy (only needed when invoking standalone without a valid pom). To deploy from exchange use uri in the format of
      exchange://[orgId]:[groupId]:[artifactId]:[version]
      or
      exchange://[groupId]:[artifactId]:[version]
    • filename

      @Parameter(property="anypoint.deploy.filename") protected String filename
      Filename (if not specified the file's name will be used)
    • appName

      @Parameter(property="anypoint.deploy.name") protected String appName
      Application name
    • force

      @Parameter(property="anypoint.deploy.force") protected boolean force
      If true, will force deployment even if same already application was already deployed.
    • skipWait

      @Parameter(property="anypoint.deploy.skipwait") protected boolean skipWait
      If true will skip wait for application to start (successfully or not)
    • deployTimeout

      @Parameter(property="anypoint.deploy.timeout") protected long deployTimeout
      Deployment timeout
    • deployRetryDelay

      @Parameter(property="anypoint.deploy.retrydelay") protected long deployRetryDelay
      Delay (in milliseconds) in retrying a deployment
    • properties

      @Parameter(property="anypoint.deploy.properties", required=false) protected Map<String,​String> properties
      Application properties
    • propertyfile

      @Parameter(property="anypoint.deploy.propertyfile", required=false) protected File propertyfile
      Application property file
    • fileProperties

      @Parameter(property="anypoint.deploy.fileproperties", required=false) protected Map<String,​String> fileProperties
      Properties 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 filePropertiesPath
      Location of property file to inserted with values specified in fileProperties
    • filePropertiesSecure

      @Parameter(property="anypoint.deploy.fileproperties.secure", required=false, defaultValue="false") protected boolean filePropertiesSecure
      If set to true, all secure properties will be inserted in fileProperties rather than in Runtime Manager.
    • vars

      @Parameter protected HashMap<String,​String> vars
      Provisioning variables
    • source

      protected ApplicationSource source
  • Constructor Details

  • Method Details