public abstract class AbstractFunctionMojo extends AbstractAppServiceMojo
AbstractAzureMojo.DefaultUncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private static String |
CHANGE_FUNCTIONS_WORKER_RUNTIME |
protected String |
finalName |
private static String |
FUNCTIONS_EXTENSION_VERSION_NAME |
private static String |
FUNCTIONS_EXTENSION_VERSION_VALUE |
private static String |
FUNCTIONS_WORKER_RUNTIME_NAME |
private static String |
FUNCTIONS_WORKER_RUNTIME_VALUE |
private static String |
JDK_VERSION_ERROR |
protected File |
outputDirectory |
protected String |
pricingTier
App Service pricing tier, which will only be used to create Functions App at the first time.
Below is the list of supported pricing tier: F1 D1 B1 B2 B3 S1 S2 S3 P1V2 P2V2 P3V2 |
protected String |
region
App Service region, which will only be used to create App Service at the first time.
|
protected com.microsoft.azure.common.function.configurations.RuntimeConfiguration |
runtime |
private static String |
SET_FUNCTIONS_EXTENSION_VERSION |
private static String |
SET_FUNCTIONS_WORKER_RUNTIME |
protected boolean |
skip
Skip execution.
|
appName, 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 |
|---|
AbstractFunctionMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkJavaVersion() |
void |
execute() |
Map |
getAppSettingsWithDefaultValue() |
String |
getFinalName() |
com.microsoft.azure.management.appservice.FunctionApp |
getFunctionApp() |
com.microsoft.azure.common.function.configurations.FunctionExtensionVersion |
getFunctionExtensionVersion() |
com.microsoft.azure.management.appservice.PricingTier |
getPricingTier() |
String |
getRegion() |
com.microsoft.azure.common.function.configurations.RuntimeConfiguration |
getRuntime() |
protected boolean |
isSkipMojo() |
private void |
overrideDefaultAppSetting(Map result,
String settingName,
String settingIsEmptyMessage,
String settingValue,
String changeSettingMessage) |
private void |
setDefaultAppSetting(Map result,
String settingName,
String settingIsEmptyMessage,
String settingValue) |
getAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentStagingDirectoryPath, getDeploymentType, getResourceGroup, getResourcesdoExecute, getAuthenticationSetting, getAuthMethod, getAuthTypeEnum, getAzureClient, getAzureClientByAuthType, getBuildDirectoryAbsolutePath, getHttpProxyHost, getHttpProxyPort, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTelemetryProperties, getTelemetryProxy, getUserAgent, handleException, infoWithMultipleLines, initAuth, initializeAuthConfiguration, initTelemetry, isAuthConfigurationExist, isFailingOnError, isTelemetryAllowed, trackMojoFailure, trackMojoSkip, trackMojoStart, trackMojoSuccessprivate static final String JDK_VERSION_ERROR
private static final String FUNCTIONS_WORKER_RUNTIME_NAME
private static final String FUNCTIONS_WORKER_RUNTIME_VALUE
private static final String SET_FUNCTIONS_WORKER_RUNTIME
private static final String CHANGE_FUNCTIONS_WORKER_RUNTIME
private static final String FUNCTIONS_EXTENSION_VERSION_NAME
private static final String FUNCTIONS_EXTENSION_VERSION_VALUE
private static final String SET_FUNCTIONS_EXTENSION_VERSION
@Parameter(property="functions.pricingTier") protected String pricingTier
@Parameter(defaultValue="${project.build.finalName}",
readonly=true,
required=true)
protected String finalName
@Parameter(defaultValue="${project.build.outputDirectory}",
readonly=true,
required=true)
protected File outputDirectory
@Parameter(property="functions.skip",
defaultValue="false")
protected boolean skip
@Parameter(property="functions.region",
defaultValue="westeurope")
protected String region
@Parameter(property="functions.runtime") protected com.microsoft.azure.common.function.configurations.RuntimeConfiguration runtime
public Map getAppSettingsWithDefaultValue()
public com.microsoft.azure.common.function.configurations.FunctionExtensionVersion getFunctionExtensionVersion()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
com.microsoft.azure.common.exceptions.AzureExecutionExceptionprivate void overrideDefaultAppSetting(Map result, String settingName, String settingIsEmptyMessage, String settingValue, String changeSettingMessage)
private void setDefaultAppSetting(Map result, String settingName, String settingIsEmptyMessage, String settingValue)
public com.microsoft.azure.management.appservice.PricingTier getPricingTier()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
com.microsoft.azure.common.exceptions.AzureExecutionExceptionpublic String getRegion()
protected boolean isSkipMojo()
isSkipMojo in class AbstractAzureMojopublic String getFinalName()
@Nullable public com.microsoft.azure.management.appservice.FunctionApp getFunctionApp() throws AzureAuthFailureException
AzureAuthFailureExceptionpublic com.microsoft.azure.common.function.configurations.RuntimeConfiguration getRuntime()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractAzureMojoorg.apache.maven.plugin.MojoExecutionExceptionpublic void checkJavaVersion()
Copyright © 2020. All rights reserved.