Class AbstractFunctionMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.microsoft.azure.maven.AbstractAzureMojo
-
- com.microsoft.azure.maven.AbstractAppServiceMojo
-
- com.microsoft.azure.maven.function.AbstractFunctionMojo
-
- All Implemented Interfaces:
com.microsoft.azure.maven.auth.AuthConfiguration,com.microsoft.azure.maven.telemetry.TelemetryConfiguration,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AddMojo,DeployMojo,ListMojo,PackageMojo,RunMojo
public abstract class AbstractFunctionMojo extends com.microsoft.azure.maven.AbstractAppServiceMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected StringappInsightsInstanceprotected StringappInsightsKeyprivate static StringDISABLE_APP_INSIGHTS_KEYprotected booleandisableAppInsightsprotected StringfinalNameprivate static StringFUNCTION_DEPLOY_TO_SLOT_KEYprivate static StringFUNCTION_IS_DOCKER_KEYprivate static StringFUNCTION_JAVA_VERSION_KEYprivate static StringFUNCTION_PRICING_KEYprivate static StringFUNCTION_REGION_KEYprivate static StringFUNCTION_RUNTIME_KEYprotected FileoutputDirectoryprotected StringpricingTierApp Service pricing tier, which will only be used to create Functions App at the first time.protected StringregionApp Service region, which will only be used to create App Service at the first time.protected com.microsoft.azure.common.function.configurations.RuntimeConfigurationruntimeprotected booleanskipSkip execution.protected static StringTRIGGER_TYPE-
Fields inherited from class com.microsoft.azure.maven.AbstractAppServiceMojo
appName, appServicePlanName, appServicePlanResourceGroup, appSettings, deploymentSlotSetting, deploymentType, MAVEN_PLUGIN_POSTFIX, PORTAL_URL_PATTERN, resourceGroup
-
Fields inherited from class com.microsoft.azure.maven.AbstractAzureMojo
allowTelemetry, auth, authentication, authType, buildDirectory, DEPLOY, failsOnError, httpProxyHost, httpProxyPort, INSTALLATION_ID_KEY, mavenResourcesFiltering, plugin, PLUGIN_NAME_KEY, PLUGIN_VERSION_KEY, project, session, SESSION_ID_KEY, settings, settingsDecrypter, SUBSCRIPTION_ID_KEY, SUBSCRIPTION_NOT_FOUND, SUBSCRIPTION_NOT_SPECIFIED, SUBSCRIPTION_TEMPLATE, subscriptionId, USING_AZURE_ENVIRONMENT
-
-
Constructor Summary
Constructors Constructor Description AbstractFunctionMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppInsightsInstance()StringgetAppInsightsKey()StringgetFinalName()com.microsoft.azure.management.appservice.FunctionAppgetFunctionApp()com.microsoft.azure.management.appservice.PricingTiergetPricingTier()StringgetRegion()com.microsoft.azure.common.function.configurations.RuntimeConfigurationgetRuntime()Map<String,String>getTelemetryProperties()booleanisDisableAppInsights()protected booleanisSkipMojo()protected voidvalidateAppName()-
Methods inherited from class com.microsoft.azure.maven.AbstractAppServiceMojo
getAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentSlotSetting, getDeploymentStagingDirectoryPath, getDeploymentType, getPortalUrl, getResourceGroup, getResourcePortalUrl, getResources, setDeploymentSlot
-
Methods inherited from class com.microsoft.azure.maven.AbstractAzureMojo
checkSubscription, doExecute, execute, executeWithTimeRecorder, getActualAuthType, getAuthenticationSetting, getAuthType, getAzureAccount, getAzureClient, getBuildDirectoryAbsolutePath, getHttpProxyHost, getHttpProxyPort, getInstallationId, getMavenResourcesFiltering, getOrCreateAzureClient, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTargetSubscriptionId, getTelemetryProxy, getUserAgent, handleException, highlightDefaultValue, infoWithMultipleLines, initTelemetry, isFailingOnError, isTelemetryAllowed, printCurrentSubscription, selectSubscription, trackMojoFailure, trackMojoSkip, trackMojoStart, trackMojoSuccess
-
-
-
-
Field Detail
-
FUNCTION_JAVA_VERSION_KEY
private static final String FUNCTION_JAVA_VERSION_KEY
- See Also:
- Constant Field Values
-
DISABLE_APP_INSIGHTS_KEY
private static final String DISABLE_APP_INSIGHTS_KEY
- See Also:
- Constant Field Values
-
FUNCTION_RUNTIME_KEY
private static final String FUNCTION_RUNTIME_KEY
- See Also:
- Constant Field Values
-
FUNCTION_IS_DOCKER_KEY
private static final String FUNCTION_IS_DOCKER_KEY
- See Also:
- Constant Field Values
-
FUNCTION_REGION_KEY
private static final String FUNCTION_REGION_KEY
- See Also:
- Constant Field Values
-
FUNCTION_PRICING_KEY
private static final String FUNCTION_PRICING_KEY
- See Also:
- Constant Field Values
-
FUNCTION_DEPLOY_TO_SLOT_KEY
private static final String FUNCTION_DEPLOY_TO_SLOT_KEY
- See Also:
- Constant Field Values
-
TRIGGER_TYPE
protected static final String TRIGGER_TYPE
- See Also:
- Constant Field Values
-
pricingTier
@Parameter(property="functions.pricingTier") 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
-
finalName
@Parameter(defaultValue="${project.build.finalName}", readonly=true, required=true) protected String finalName
-
outputDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", readonly=true, required=true) protected File outputDirectory
-
skip
@Parameter(property="functions.skip", defaultValue="false") protected boolean skipSkip execution.- Since:
- 0.1.0
-
region
@Parameter(property="functions.region", defaultValue="westeurope") protected String regionApp Service region, which will only be used to create App Service at the first time.
-
runtime
@Parameter(property="functions.runtime") protected com.microsoft.azure.common.function.configurations.RuntimeConfiguration runtime
-
appInsightsInstance
@Parameter(property="functions.appInsightsInstance") protected String appInsightsInstance
-
appInsightsKey
@Parameter(property="functions.appInsightsKey") protected String appInsightsKey
-
disableAppInsights
@Parameter(property="functions.disableAppInsights", defaultValue="false") protected boolean disableAppInsights
-
-
Method Detail
-
getPricingTier
public com.microsoft.azure.management.appservice.PricingTier getPricingTier() throws com.microsoft.azure.common.exceptions.AzureExecutionException- Throws:
com.microsoft.azure.common.exceptions.AzureExecutionException
-
getRegion
public String getRegion()
-
isSkipMojo
protected boolean isSkipMojo()
- Overrides:
isSkipMojoin classcom.microsoft.azure.maven.AbstractAzureMojo
-
getFinalName
public String getFinalName()
-
getAppInsightsInstance
public String getAppInsightsInstance()
-
getAppInsightsKey
public String getAppInsightsKey()
-
isDisableAppInsights
public boolean isDisableAppInsights()
-
getFunctionApp
@Nullable public com.microsoft.azure.management.appservice.FunctionApp getFunctionApp() throws com.microsoft.azure.maven.auth.AzureAuthFailureException, com.microsoft.azure.common.exceptions.AzureExecutionException
- Throws:
com.microsoft.azure.maven.auth.AzureAuthFailureExceptioncom.microsoft.azure.common.exceptions.AzureExecutionException
-
getRuntime
public com.microsoft.azure.common.function.configurations.RuntimeConfiguration getRuntime()
-
validateAppName
protected void validateAppName()
-
-