@Mojo(name="deploy",
defaultPhase=DEPLOY)
public class DeployMojo
extends AbstractFunctionMojo
AbstractAzureMojo.DefaultUncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static com.microsoft.azure.management.appservice.JavaVersion |
DEFAULT_JAVA_VERSION |
static String |
DEPLOY_FINISH |
static String |
DEPLOY_START |
static String |
DEPLOYMENT_TYPE_KEY |
static String |
FUNCTION_APP_CREATE_START |
static String |
FUNCTION_APP_CREATED |
static String |
FUNCTION_APP_UPDATE |
static String |
FUNCTION_APP_UPDATE_DONE |
static String |
HOST_JAVA_VERSION |
static String |
HOST_JAVA_VERSION_INCORRECT |
static String |
HOST_JAVA_VERSION_OFF |
static String |
UNKNOWN_DEPLOYMENT_TYPE |
static String |
VALID_JAVA_VERSION_PATTERN |
finalName, outputDirectory, pricingTier, region, runtime, skipappName, appServicePlanName, appServicePlanResourceGroup, appSettings, deploymentType, MAVEN_PLUGIN_POSTFIX, resourceGroupallowTelemetry, auth, AUTH_METHOD, AUTH_TYPE, authentication, authType, AZURE_INIT_FAIL, buildDirectory, failsOnError, FAILURE_REASON, httpProxyHost, httpProxyPort, INIT_FAILURE, INSTALLATION_ID_KEY, INVALID_AUTH_TYPE, mavenResourcesFiltering, plugin, PLUGIN_NAME_KEY, PLUGIN_VERSION_KEY, project, session, SESSION_ID_KEY, settings, settingsDecrypter, SUBSCRIPTION_ID_KEY, subscriptionId, TELEMETRY_NOT_ALLOWED| Constructor and Description |
|---|
DeployMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkHostJavaVersion(com.microsoft.azure.management.appservice.FunctionApp app,
com.microsoft.azure.management.appservice.FunctionApp.Update update) |
protected void |
configureAppSettings(java.util.function.Consumer<Map> withAppSettings,
Map appSettings) |
protected void |
createFunctionApp() |
protected void |
createOrUpdateFunctionApp() |
protected void |
doExecute() |
protected com.microsoft.azure.common.handlers.ArtifactHandler |
getArtifactHandler() |
com.microsoft.azure.common.appservice.DeploymentType |
getDeploymentType() |
com.microsoft.azure.common.appservice.DeploymentType |
getDeploymentTypeByRuntime() |
protected com.microsoft.azure.common.function.handlers.runtime.FunctionRuntimeHandler |
getFunctionRuntimeHandler() |
protected com.microsoft.azure.common.appservice.OperatingSystemEnum |
getOsEnum() |
Map<String,String> |
getTelemetryProperties() |
protected boolean |
isDedicatedPricingTier() |
protected void |
updateFunctionApp(com.microsoft.azure.management.appservice.FunctionApp app) |
checkJavaVersion, execute, getAppSettingsWithDefaultValue, getFinalName, getFunctionApp, getFunctionExtensionVersion, getPricingTier, getRegion, getRuntime, isSkipMojogetAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentStagingDirectoryPath, getResourceGroup, getResourcesgetAuthenticationSetting, getAuthMethod, getAuthTypeEnum, getAzureClient, getAzureClientByAuthType, getBuildDirectoryAbsolutePath, getHttpProxyHost, getHttpProxyPort, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTelemetryProxy, getUserAgent, handleException, infoWithMultipleLines, initAuth, initializeAuthConfiguration, initTelemetry, isAuthConfigurationExist, isFailingOnError, isTelemetryAllowed, trackMojoFailure, trackMojoSkip, trackMojoStart, trackMojoSuccesspublic static final com.microsoft.azure.management.appservice.JavaVersion DEFAULT_JAVA_VERSION
public static final String VALID_JAVA_VERSION_PATTERN
public static final String DEPLOY_START
public static final String DEPLOY_FINISH
public static final String FUNCTION_APP_CREATE_START
public static final String FUNCTION_APP_CREATED
public static final String FUNCTION_APP_UPDATE
public static final String FUNCTION_APP_UPDATE_DONE
public static final String DEPLOYMENT_TYPE_KEY
public static final String HOST_JAVA_VERSION
public static final String HOST_JAVA_VERSION_OFF
public static final String HOST_JAVA_VERSION_INCORRECT
public static final String UNKNOWN_DEPLOYMENT_TYPE
protected void doExecute()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
doExecute in class AbstractAzureMojocom.microsoft.azure.common.exceptions.AzureExecutionExceptionprotected void createOrUpdateFunctionApp()
throws AzureAuthFailureException,
com.microsoft.azure.common.exceptions.AzureExecutionException
AzureAuthFailureExceptioncom.microsoft.azure.common.exceptions.AzureExecutionExceptionprotected void createFunctionApp()
throws AzureAuthFailureException,
com.microsoft.azure.common.exceptions.AzureExecutionException
AzureAuthFailureExceptioncom.microsoft.azure.common.exceptions.AzureExecutionExceptionprotected void updateFunctionApp(com.microsoft.azure.management.appservice.FunctionApp app)
throws AzureAuthFailureException,
com.microsoft.azure.common.exceptions.AzureExecutionException
AzureAuthFailureExceptioncom.microsoft.azure.common.exceptions.AzureExecutionExceptionprotected void checkHostJavaVersion(com.microsoft.azure.management.appservice.FunctionApp app,
com.microsoft.azure.management.appservice.FunctionApp.Update update)
protected void configureAppSettings(java.util.function.Consumer<Map> withAppSettings, Map appSettings)
protected com.microsoft.azure.common.function.handlers.runtime.FunctionRuntimeHandler getFunctionRuntimeHandler()
throws AzureAuthFailureException,
com.microsoft.azure.common.exceptions.AzureExecutionException
AzureAuthFailureExceptioncom.microsoft.azure.common.exceptions.AzureExecutionExceptionprotected com.microsoft.azure.common.appservice.OperatingSystemEnum getOsEnum()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
com.microsoft.azure.common.exceptions.AzureExecutionExceptionprotected com.microsoft.azure.common.handlers.ArtifactHandler getArtifactHandler()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
com.microsoft.azure.common.exceptions.AzureExecutionExceptionpublic com.microsoft.azure.common.appservice.DeploymentType getDeploymentType()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
getDeploymentType in class AbstractAppServiceMojocom.microsoft.azure.common.exceptions.AzureExecutionExceptionpublic com.microsoft.azure.common.appservice.DeploymentType getDeploymentTypeByRuntime()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
com.microsoft.azure.common.exceptions.AzureExecutionExceptionprotected boolean isDedicatedPricingTier()
public Map<String,String> getTelemetryProperties()
getTelemetryProperties in interface TelemetryConfigurationgetTelemetryProperties in class AbstractAzureMojoCopyright © 2020. All rights reserved.