Class DeployMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="deploy",
          defaultPhase=DEPLOY)
    public class DeployMojo
    extends AbstractFunctionMojo
    Deploy your project to target Azure Functions. If target Function App doesn't exist, it will be created.
    • Constructor Detail

      • DeployMojo

        public DeployMojo()
    • Method Detail

      • doExecute

        protected void doExecute()
                          throws Throwable
        Specified by:
        doExecute in class com.microsoft.azure.maven.AbstractAzureMojo
        Throws:
        Throwable
      • doValidate

        protected void doValidate()
                           throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
      • validateParameters

        @Deprecated
        protected void validateParameters()
        Deprecated.
      • createOrUpdateResource

        protected com.microsoft.azure.toolkit.lib.appservice.function.FunctionAppBase<?,​?,​?> createOrUpdateResource​(com.microsoft.azure.toolkit.lib.appservice.config.FunctionAppConfig config)
                                                                                                                         throws Throwable
        Throws:
        Throwable
      • buildDefaultConfig

        private com.microsoft.azure.toolkit.lib.appservice.config.AppServiceConfig buildDefaultConfig​(String subscriptionId,
                                                                                                      String resourceGroup,
                                                                                                      String appName)
      • deployArtifact

        private void deployArtifact​(com.microsoft.azure.toolkit.lib.appservice.function.FunctionAppBase<?,​?,​?> target)
      • validateArtifactCompileVersion

        protected void validateArtifactCompileVersion()
                                               throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
      • getArtifactToDeploy

        private File getArtifactToDeploy()
                                  throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
      • validateApplicationInsightsConfiguration

        private void validateApplicationInsightsConfiguration()
                                                       throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException