@Mojo(name="deploy",
defaultPhase=DEPLOY)
public class DeployMojo
extends AbstractFunctionMojo
| 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 |
VALID_JAVA_VERSION_PATTERN |
finalName, outputDirectory, pricingTier, region, skipappName, appServicePlanName, appServicePlanResourceGroup, appSettings, deploymentType, MAVEN_PLUGIN_POSTFIX, resourceGroupallowTelemetry, AUTH_TYPE, authentication, AZURE_INIT_FAIL, buildDirectory, failsOnError, FAILURE_REASON, httpProxyHost, httpProxyPort, INIT_FAILURE, INSTALLATION_ID_KEY, mavenResourcesFiltering, plugin, PLUGIN_NAME_KEY, PLUGIN_VERSION_KEY, project, session, SESSION_ID_KEY, settings, 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 |
configurePricingTier(com.microsoft.azure.management.appservice.FunctionApp.DefinitionStages.WithCreate withCreate,
com.microsoft.azure.management.appservice.PricingTier pricingTier) |
protected com.microsoft.azure.management.appservice.FunctionApp.DefinitionStages.WithCreate |
configureResourceGroup(com.microsoft.azure.management.appservice.FunctionApp.DefinitionStages.NewAppServicePlanWithGroup newAppServicePlanWithGroup,
String resourceGroup) |
protected void |
createFunctionApp() |
protected void |
createOrUpdateFunctionApp() |
protected void |
doExecute() |
protected com.microsoft.azure.maven.artifacthandler.ArtifactHandler |
getArtifactHandler() |
Map<String,String> |
getTelemetryProperties() |
protected boolean |
isResourceGroupExist(String resourceGroup) |
protected void |
updateFunctionApp(com.microsoft.azure.management.appservice.FunctionApp app) |
checkJavaVersion, execute, getFinalName, getFunctionApp, getPricingTier, getRegion, isSkipMojogetAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentStagingDirectoryPath, getDeploymentType, getResourceGroup, getResourcesdebug, error, getAuthenticationSetting, getAuthType, getAzureClient, getBuildDirectoryAbsolutePath, getHttpProxyHost, getHttpProxyPort, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTelemetryProxy, getUserAgent, handleException, info, infoWithMultipleLines, initTelemetry, isFailingOnError, isTelemetryAllowed, trackMojoFailure, trackMojoSkip, trackMojoStart, trackMojoSuccess, warninggetLog, getPluginContext, setLog, setPluginContextpublic 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
protected void doExecute()
throws Exception
doExecute in class com.microsoft.azure.maven.AbstractAzureMojoExceptionprotected void createOrUpdateFunctionApp()
throws Exception
Exceptionprotected void updateFunctionApp(com.microsoft.azure.management.appservice.FunctionApp app)
protected void checkHostJavaVersion(com.microsoft.azure.management.appservice.FunctionApp app,
com.microsoft.azure.management.appservice.FunctionApp.Update update)
protected com.microsoft.azure.management.appservice.FunctionApp.DefinitionStages.WithCreate configureResourceGroup(com.microsoft.azure.management.appservice.FunctionApp.DefinitionStages.NewAppServicePlanWithGroup newAppServicePlanWithGroup,
String resourceGroup)
throws Exception
Exceptionprotected boolean isResourceGroupExist(String resourceGroup) throws Exception
Exceptionprotected void configurePricingTier(com.microsoft.azure.management.appservice.FunctionApp.DefinitionStages.WithCreate withCreate,
com.microsoft.azure.management.appservice.PricingTier pricingTier)
protected void configureAppSettings(java.util.function.Consumer<Map> withAppSettings, Map appSettings)
protected com.microsoft.azure.maven.artifacthandler.ArtifactHandler getArtifactHandler()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2019. All rights reserved.