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 LegacyDeployMojo
Deploy an application to Cloudhub or On-Prem/Hybrid
  • Field Details

    • ANYPOINT_DEPLOY_PROPERTIES

      public static final String ANYPOINT_DEPLOY_PROPERTIES
      See Also:
    • VAR

      public static final String VAR
      See Also:
    • CLOUDHUB

      public static final String CLOUDHUB
      See Also:
    • EMT_TARGET

      public static final String EMT_TARGET
      See Also:
    • skipProvisioning

      @Parameter(property="emt.skipProvisioning") protected boolean skipProvisioning
      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)
    • 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
    • ignoreMissingPropertyFile

      @Parameter(property="anypoint.deploy.propertyfile.ignoremissing", required=false) protected boolean ignoreMissingPropertyFile
      Ignore missing application properties 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

      @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 Map<String,String> vars
      Provisioning variables
    • skipApiProvisioning

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

    • DeployMojo

      public DeployMojo()
  • Method Details