| Modifier and Type | Constant Field | Value |
|---|---|---|
private static final int |
DEFAULT_LINE_LENGTH |
80 |
private static final String |
PLUGIN_HELP_PATH |
"/META-INF/maven/com.microsoft.azure/azure-functions-maven-plugin/plugin-help.xml" |
| Modifier and Type | Constant Field | Value |
|---|---|---|
protected static final String |
AZURE_FUNCTIONS_JAVA_LIBRARY |
"azure-functions-java-library" |
protected static final String |
CAN_NOT_FIND_ARTIFACT |
"Cannot find the maven artifact, please run `mvn package` first." |
private static final String |
DISABLE_APP_INSIGHTS_KEY |
"disableAppInsights" |
private static final String |
FUNCTION_DEPLOY_TO_SLOT_KEY |
"isDeployToFunctionSlot" |
private static final String |
FUNCTION_IS_DOCKER_KEY |
"isDockerFunction" |
private static final String |
FUNCTION_JAVA_VERSION_KEY |
"functionJavaVersion" |
private static final String |
FUNCTION_PRICING_KEY |
"pricingTier" |
private static final String |
FUNCTION_REGION_KEY |
"region" |
private static final String |
FUNCTION_RUNTIME_KEY |
"os" |
protected static final String |
HOST_JSON |
"host.json" |
protected static final String |
LOCAL_SETTINGS_JSON |
"local.settings.json" |
protected static final String |
TRIGGER_TYPE |
"triggerType" |
| Modifier and Type | Constant Field | Value |
|---|---|---|
private static final String |
DEFAULT_INPUT_ERROR_MESSAGE |
"Invalid input, please check and try again." |
private static final String |
FILE_EXIST |
"Function already exists at %s. Please specify a different function name." |
private static final String |
FIND_TEMPLATE |
"Step 2 of 4: Select function template" |
private static final String |
FIND_TEMPLATE_DONE |
"Successfully found function template: " |
private static final String |
FIND_TEMPLATE_FAIL |
"Function template not found: " |
private static final String |
FOUND_VALID_VALUE |
"Found valid value. Skip user input." |
private static final String |
FUNCTION_NAME_REGEXP |
"^[a-zA-Z][a-zA-Z\\d_\\-]*$" |
private static final String |
LOAD_TEMPLATES |
"Step 1 of 4: Load all function templates" |
private static final String |
LOAD_TEMPLATES_DONE |
"Successfully loaded all function templates" |
private static final String |
PREPARE_PARAMS |
"Step 3 of 4: Prepare required parameters" |
private static final String |
PROMPT_STRING_WITH_DEFAULT_VALUE |
"Enter value for %s(Default: %s): " |
private static final String |
PROMPT_STRING_WITHOUT_DEFAULT_VALUE |
"Enter value for %s: " |
private static final String |
SAVE_FILE |
"Step 4 of 4: Saving function to file" |
private static final String |
SAVE_FILE_DONE |
"Successfully saved new function at " |
| Modifier and Type | Constant Field | Value |
|---|---|---|
private static final String |
APP_NAME_PATTERN |
"[a-zA-Z0-9\\-]{2,60}" |
private static final String |
APP_SERVICE_PLAN_NAME_PATTERN |
"[a-zA-Z0-9\\-]{1,40}" |
private static final String |
APPLICATION_INSIGHTS_CONFIGURATION_CONFLICT |
"Contradictory configurations for application insights, specify \'appInsightsKey\' or \'appInsightsInstance\' if you want to enable it, and specify \'disableAppInsights=true\' if you want to disable it." |
private static final String |
ARTIFACT_INCOMPATIBLE_ERROR |
"Your function app artifact compile version {0} is not compatible with java version {1} in configuration, please downgrade the project compile version and try again." |
private static final String |
ARTIFACT_INCOMPATIBLE_WARNING |
"Your function app artifact compile version {0} may not compatible with java version {1} in configuration." |
public static final String |
CV2_INVALID_ALWAYS_READY_INSTANCE |
"\'alwaysReadyInstances\' must be less than or equal to \'maximumInstances\'" |
private static final String |
CV2_INVALID_CONTAINER_SIZE |
"Invalid container size for flex consumption plan, valid values are: %s" |
public static final String |
CV2_INVALID_JAVA_VERSION |
"Invalid java version for flex consumption plan, only java 17 is supported" |
private static final String |
CV2_INVALID_MAX_INSTANCE |
"Invalid maximum instances for flex consumption plan, the limit is 1000" |
private static final String |
CV2_INVALID_RUNTIME |
"Windows runtime is not supported within flex consumption service plan" |
private static final String |
EMPTY_APP_NAME |
"Please config the <appName> in pom.xml." |
private static final String |
EMPTY_IMAGE_NAME |
"Please config the <image> of <runtime> in pom.xml." |
private static final String |
EMPTY_RESOURCE_GROUP |
"Please config the <resourceGroup> in pom.xml." |
private static final String |
EMPTY_SLOT_NAME |
"Please config the <name> of <deploymentSlot> in pom.xml" |
private static final String |
EXPANDABLE_JAVA_VERSION_WARNING |
"\'%s\' may not be a valid java version, recommended values are `Java 8`, `Java 11` and `Java 17`" |
private static final String |
EXPANDABLE_PRICING_TIER_WARNING |
"\'%s\' may not be a valid pricing tier, please refer to https://aka.ms/maven_function_configuration#supported-pricing-tiers for valid values" |
private static final String |
EXPANDABLE_REGION_WARNING |
"\'%s\' may not be a valid region, please refer to https://aka.ms/maven_function_configuration#supported-regions for valid values" |
private static final String |
INVALID_APP_NAME |
"The <appName> only allow alphanumeric characters, hyphens and cannot start or end in a hyphen." |
private static final String |
INVALID_OS |
"The value of <os> is not correct, supported values are: windows, linux and docker." |
private static final String |
INVALID_RESOURCE_GROUP_NAME |
"The <resourceGroup> only allow alphanumeric characters, periods, underscores, hyphens and parenthesis and cannot end in a period." |
private static final String |
INVALID_SERVICE_PLAN_NAME |
"Invalid value for <appServicePlanName>, it need to match the pattern %s" |
private static final String |
INVALID_SERVICE_PLAN_RESOURCE_GROUP_NAME |
"Invalid value for <appServicePlanResourceGroup>, it only allow alphanumeric characters, periods, underscores, hyphens and parenthesis and cannot end in a period." |
private static final String |
INVALID_SLOT_NAME |
"Invalid value of <name> inside <deploymentSlot> in pom.xml, it needs to match the pattern \'%s\'" |
public static final int |
MAX_MAX_INSTANCES |
1000 |
private static final String |
NO_ARTIFACT_FOUNDED |
"Failed to find function artifact \'%s.jar\' in folder \'%s\', please re-package the project and try again." |
private static final String |
RESOURCE_GROUP_PATTERN |
"[a-zA-Z0-9._\\-()]{1,90}" |
private static final String |
SLOT_NAME_PATTERN |
"[A-Za-z0-9-]{1,60}" |
| Modifier and Type | Constant Field | Value |
|---|---|---|
protected static final String |
BINDINGS_END |
">> bindings end <<" |
protected static final String |
BINDINGS_FILE |
"/bindings.json" |
protected static final String |
BINDINGS_START |
">> bindings begin <<" |
protected static final String |
RESOURCES_END |
">> resources end <<" |
protected static final String |
RESOURCES_FILE |
"/resources.json" |
protected static final String |
RESOURCES_START |
">> resources begin <<" |
protected static final String |
TEMPLATES_END |
">> templates end <<" |
protected static final String |
TEMPLATES_FILE |
"/templates.json" |
protected static final String |
TEMPLATES_START |
">> templates begin <<" |
| Modifier and Type | Constant Field | Value |
|---|---|---|
private static final String |
AZURE_FUNCTIONS_JAVA_CORE_LIBRARY |
"azure-functions-java-core-library" |
public static final String |
BUILD_SUCCESS |
"Successfully built Azure Functions." |
private static final String |
BUILD_UBER_ARTIFACT_EXCEPTION |
"Failed to build uber artifact, please set `buildFatJar` to `false` and use `maven-shade-plugin` to try again." |
public static final String |
COPY_JARS |
"Step 7 of 8: Copying JARs to staging directory " |
public static final String |
COPY_SUCCESS |
"Copied successfully." |
private static final String |
DEFAULT_HOST_JSON |
"{\"version\":\"2.0\",\"extensionBundle\":{\"id\":\"Microsoft.Azure.Functions.ExtensionBundle\",\"version\":\"[4.*, 5.0.0)\"}}\n" |
private static final String |
DEFAULT_LOCAL_SETTINGS_JSON |
"{ \"IsEncrypted\": false, \"Values\": { \"FUNCTIONS_WORKER_RUNTIME\": \"java\" } }" |
public static final String |
EXTENSION_BUNDLE |
"extensionBundle" |
private static final String |
EXTENSION_BUNDLE_ID |
"Microsoft.Azure.Functions.ExtensionBundle" |
private static final String |
EXTENSION_BUNDLE_PREVIEW_ID |
"Microsoft.Azure.Functions.ExtensionBundle.Preview" |
public static final String |
FOUND_FUNCTIONS |
" Azure Functions entry point(s) found." |
public static final String |
FUNCTION_JSON |
"function.json" |
public static final String |
GENERATE_CONFIG |
"Step 2 of 8: Generating Azure Functions configurations" |
public static final String |
GENERATE_DONE |
"Generation done." |
public static final String |
GENERATE_SKIP |
"No Azure Functions found. Skip configuration generation." |
public static final String |
INSTALL_EXTENSIONS |
"Step 8 of 8: Installing function extensions if needed" |
public static final String |
INSTALL_EXTENSIONS_FINISH |
"Function extension installation done." |
public static final String |
NO_FUNCTIONS |
"Azure Functions entry point not found, plugin will exit." |
public static final String |
SAVE_FUNCTION_JSON |
"Starting processing function: " |
public static final String |
SAVE_FUNCTION_JSONS |
"Step 6 of 8: Saving configurations to function.json" |
public static final String |
SAVE_SKIP |
"No configurations found. Skip save." |
public static final String |
SAVE_SUCCESS |
"Successfully saved to " |
public static final String |
SAVING_HOST_JSON |
"Step 4 of 8: Copying/creating host.json" |
public static final String |
SAVING_LOCAL_SETTINGS_JSON |
"Step 5 of 8: Copying/creating local.settings.json" |
public static final String |
SEARCH_FUNCTIONS |
"Step 1 of 8: Searching for Azure Functions entry points" |
private static final String |
SKIP_INSTALL_EXTENSIONS_BUNDLE |
"Extension bundle specified, skip install extension" |
private static final String |
SKIP_INSTALL_EXTENSIONS_FLAG |
"skipInstallExtensions flag is set, skip install extension" |
public static final String |
SKIP_INSTALL_EXTENSIONS_HTTP |
"Skip install Function extension for HTTP Trigger Functions" |
public static final String |
VALIDATE_CONFIG |
"Step 3 of 8: Validating generated configurations" |
public static final String |
VALIDATE_DONE |
"Validation done." |
public static final String |
VALIDATE_SKIP |
"No configurations found. Skip validation." |
| Modifier and Type | Constant Field | Value |
|---|---|---|
protected static final String |
FUNC_CMD |
"func -v" |
protected static final String |
FUNC_HOST_START_CMD |
"func host start -p %s" |
private static final String |
FUNC_HOST_START_WITH_DEBUG_CMD |
"func host start -p %s --language-worker -- \"-agentlib:jdwp=%s\"" |
private static final String |
FUNC_VERSION_CMD |
"func -v" |
private static final String |
FUNCTION_CORE_TOOLS_OUT_OF_DATE |
"Local function core tools didn\'t support java 9 or higher runtime, to update it, see: https://aka.ms/azfunc-install." |
protected static final String |
RUN_FUNCTIONS_FAILURE |
"Failed to run Azure Functions. Please checkout console output." |
private static final String |
RUNTIME_FOUND |
"Azure Functions Core Tools found." |
protected static final String |
RUNTIME_NOT_FOUND |
"Azure Functions Core Tools not found. Please go to https://aka.ms/azfunc-install to install Azure Functions Core Tools first." |
private static final String |
STAGE_DIR_FOUND |
"Function App\'s staging directory found at: " |
private static final String |
STAGE_DIR_NOT_FOUND |
"Stage directory not found. Please run mvn package first." |
Copyright © 2024. All rights reserved.