@Mojo(name="run") public class RunMojo extends AbstractFunctionMojo
AbstractAzureMojo.DefaultUncaughtExceptionHandler, AbstractAzureMojo.RunnableWithException| Modifier and Type | Field and Description |
|---|---|
private static org.apache.maven.artifact.versioning.ComparableVersion |
FUNC_3 |
protected static String |
FUNC_CMD |
protected static String |
FUNC_HOST_START_CMD |
private static String |
FUNC_HOST_START_WITH_DEBUG_CMD |
private static String |
FUNC_VERSION_CMD |
protected Integer |
funcPort
Config port for function local host
|
private static String |
FUNCTION_CORE_TOOLS_OUT_OF_DATE |
private static org.apache.maven.artifact.versioning.ComparableVersion |
JAVA_9 |
protected String |
localDebugConfig
Config String for local debug
|
private static org.apache.maven.artifact.versioning.ComparableVersion |
MINIMUM_JAVA_9_SUPPORTED_VERSION |
private static org.apache.maven.artifact.versioning.ComparableVersion |
MINIMUM_JAVA_9_SUPPORTED_VERSION_V2 |
protected static String |
RUN_FUNCTIONS_FAILURE |
private static String |
RUNTIME_FOUND |
protected static String |
RUNTIME_NOT_FOUND |
private static String |
STAGE_DIR_FOUND |
private static String |
STAGE_DIR_NOT_FOUND |
alwaysReadyInstances, appInsightsInstance, appInsightsKey, artifactPath, AZURE_FUNCTIONS_JAVA_LIBRARY, CAN_NOT_FIND_ARTIFACT, disableAppInsights, enableDistributedTracing, environment, finalName, FUNCTION_EXTENSION_LIBRARY_MAP, HOST_JSON, hostJson, instanceSize, LOCAL_SETTINGS_JSON, localSettingsJson, maximumInstances, maxReplicas, minReplicas, outputDirectory, parser, pricingTier, region, runtime, skip, storageAccountName, storageAccountResourceGroup, TRIGGER_TYPEappName, appServiceClient, appServicePlanName, appServicePlanResourceGroup, appSettings, deploymentSlotSetting, MAVEN_PLUGIN_POSTFIX, resourceGroupallowTelemetry, auth, authType, buildDirectory, COMPILE_LEVEL_NOT_SUPPORTED, FAILED_TO_GET_VALID_RUNTIMES, failsOnError, failsOnRuntimeValidationError, 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_TEMPLATE, subscriptionId, telemetries, telemetryProxy, USING_AZURE_ENVIRONMENT| Constructor and Description |
|---|
RunMojo() |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkRuntimeCompatibility(CommandHandler handler) |
protected void |
checkRuntimeExistence(CommandHandler handler) |
protected void |
checkStageDirectoryExistence() |
protected void |
doExecute() |
protected String |
getCheckRuntimeCommand() |
String |
getLocalDebugConfig() |
protected String |
getStartFunctionHostCommand() |
protected String |
getStartFunctionHostWithDebugCommand() |
protected void |
runFunctions(CommandHandler handler) |
void |
setLocalDebugConfig(String localDebugConfig) |
getAppInsightsInstance, getAppInsightsKey, getArtifact, getBundleVersion, getFinalName, getFunctionLibraryVersion, getHostJsonFile, getLocalSettingsJsonFile, getRegion, getRuntimeConfiguration, getTelemetryProperties, isDisableAppInsights, isSkipMojo, readHostJson, validateAppName, validateFunctionCompatibilitygetAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentSlotSetting, getDeploymentStagingDirectoryPath, getResourceGroup, getResources, initAzureAppServiceClient, printCurrentSubscriptionafterMojoExecution, beforeMojoExecution, checkSubscription, execute, executeWithTimeRecorder, getActualAuthType, getAllowTelemetry, getBuildDirectoryAbsolutePath, getCompileLevel, getFailsOnError, getFailsOnRuntimeValidationError, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTargetSubscriptionId, getTelemetries, getTelemetryProxy, getUserAgent, getValidRuntimes, highlightDefaultValue, infoWithMultipleLines, initTelemetryProxy, loginAzure, loginAzure, onMojoError, onSkipped, printCredentialDescription, selectSubscription, selectSubscription, trackMojoFailure, updateTelemetryProperties, validateArtifactCompileVersionprotected static final String FUNC_CMD
protected static final String FUNC_HOST_START_CMD
protected static final String RUN_FUNCTIONS_FAILURE
protected static final String RUNTIME_NOT_FOUND
private static final String STAGE_DIR_FOUND
private static final String STAGE_DIR_NOT_FOUND
private static final String RUNTIME_FOUND
private static final String FUNC_HOST_START_WITH_DEBUG_CMD
private static final org.apache.maven.artifact.versioning.ComparableVersion JAVA_9
private static final org.apache.maven.artifact.versioning.ComparableVersion FUNC_3
private static final org.apache.maven.artifact.versioning.ComparableVersion MINIMUM_JAVA_9_SUPPORTED_VERSION
private static final org.apache.maven.artifact.versioning.ComparableVersion MINIMUM_JAVA_9_SUPPORTED_VERSION_V2
private static final String FUNC_VERSION_CMD
private static final String FUNCTION_CORE_TOOLS_OUT_OF_DATE
@Parameter(property="localDebugConfig",
defaultValue="transport=dt_socket,server=y,suspend=n,address=5005")
protected String localDebugConfig
@Parameter(property="funcPort",
defaultValue="7071")
protected Integer funcPort
public String getLocalDebugConfig()
public void setLocalDebugConfig(String localDebugConfig)
protected void doExecute()
throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
doExecute in class AbstractAzureMojocom.microsoft.azure.toolkit.lib.common.exception.AzureExecutionExceptionprotected void checkStageDirectoryExistence()
throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionExceptionprotected void checkRuntimeExistence(CommandHandler handler) throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionExceptionprotected void runFunctions(CommandHandler handler) throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionExceptionprivate void checkRuntimeCompatibility(CommandHandler handler) throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionExceptionprotected String getCheckRuntimeCommand()
protected String getStartFunctionHostCommand()
protected String getStartFunctionHostWithDebugCommand()
Copyright © 2024. All rights reserved.