@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE)
public class PackageMojo
extends AbstractFunctionMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
BUILD_SUCCESS |
static String |
COPY_JARS |
static String |
COPY_SUCCESS |
static String |
FOUND_FUNCTIONS |
static String |
FUNCTION_JSON |
private static BindingEnum[] |
FUNCTION_WITHOUT_FUNCTION_EXTENSION |
static String |
GENERATE_CONFIG |
static String |
GENERATE_DONE |
static String |
GENERATE_SKIP |
static String |
HOST_JSON |
static String |
INSTALL_EXTENSIONS |
static String |
INSTALL_EXTENSIONS_FINISH |
static String |
SAVE_FUNCTION_JSON |
static String |
SAVE_FUNCTION_JSONS |
static String |
SAVE_HOST_JSON |
static String |
SAVE_SKIP |
static String |
SAVE_SUCCESS |
static String |
SEARCH_FUNCTIONS |
static String |
SKIP_INSTALL_EXTENSIONS |
static String |
VALIDATE_CONFIG |
static String |
VALIDATE_DONE |
static String |
VALIDATE_SKIP |
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 |
|---|
PackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyJarsToStageDirectory() |
protected void |
doExecute() |
protected Set<Method> |
findAnnotatedMethods(AnnotationHandler handler) |
protected AnnotationHandler |
getAnnotationHandler() |
protected URL |
getArtifactUrl() |
protected List<URL> |
getDependencyArtifactUrls() |
protected Set<BindingEnum> |
getFunctionBindingEnums(Map<String,FunctionConfiguration> configMap) |
protected Map<String,FunctionConfiguration> |
getFunctionConfigurations(AnnotationHandler handler,
Set<Method> methods) |
protected FunctionCoreToolsHandler |
getFunctionCoreToolsHandler(CommandHandler commandHandler) |
protected com.fasterxml.jackson.databind.ObjectWriter |
getObjectWriter() |
List<org.apache.maven.model.Resource> |
getResources() |
protected String |
getScriptFilePath() |
protected URL |
getTargetClassUrl() |
protected void |
installExtension(FunctionCoreToolsHandler handler,
Set<BindingEnum> bindingEnums) |
protected boolean |
isInstallingExtensionNeeded(Set<BindingEnum> bindingTypes) |
protected void |
validateFunctionConfigurations(Map<String,FunctionConfiguration> configMap) |
protected void |
writeEmptyHostJsonFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter) |
protected void |
writeFunctionJsonFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter,
String functionName,
FunctionConfiguration config) |
protected void |
writeFunctionJsonFiles(com.fasterxml.jackson.databind.ObjectWriter objectWriter,
Map<String,FunctionConfiguration> configMap) |
protected void |
writeObjectToFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter,
Object object,
File targetFile) |
checkJavaVersion, execute, getFinalName, getFunctionApp, getPricingTier, getRegion, isSkipMojogetAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentStagingDirectoryPath, getDeploymentType, getResourceGroupdebug, error, getAuthenticationSetting, getAuthType, getAzureClient, getBuildDirectoryAbsolutePath, getHttpProxyHost, getHttpProxyPort, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTelemetryProperties, getTelemetryProxy, getUserAgent, handleException, info, infoWithMultipleLines, initTelemetry, isFailingOnError, isTelemetryAllowed, trackMojoFailure, trackMojoSkip, trackMojoStart, trackMojoSuccess, warninggetLog, getPluginContext, setLog, setPluginContextpublic static final String SEARCH_FUNCTIONS
public static final String FOUND_FUNCTIONS
public static final String GENERATE_CONFIG
public static final String GENERATE_SKIP
public static final String GENERATE_DONE
public static final String VALIDATE_CONFIG
public static final String VALIDATE_SKIP
public static final String VALIDATE_DONE
public static final String SAVE_HOST_JSON
public static final String SAVE_FUNCTION_JSONS
public static final String SAVE_SKIP
public static final String SAVE_FUNCTION_JSON
public static final String SAVE_SUCCESS
public static final String COPY_JARS
public static final String COPY_SUCCESS
public static final String INSTALL_EXTENSIONS
public static final String SKIP_INSTALL_EXTENSIONS
public static final String INSTALL_EXTENSIONS_FINISH
public static final String BUILD_SUCCESS
public static final String FUNCTION_JSON
public static final String HOST_JSON
private static final BindingEnum[] FUNCTION_WITHOUT_FUNCTION_EXTENSION
protected void doExecute()
throws Exception
doExecute in class com.microsoft.azure.maven.AbstractAzureMojoExceptionprotected AnnotationHandler getAnnotationHandler()
protected Set<Method> findAnnotatedMethods(AnnotationHandler handler) throws Exception
Exceptionprotected List<URL> getDependencyArtifactUrls()
protected Map<String,FunctionConfiguration> getFunctionConfigurations(AnnotationHandler handler, Set<Method> methods) throws Exception
Exceptionprotected String getScriptFilePath()
protected void validateFunctionConfigurations(Map<String,FunctionConfiguration> configMap)
protected void writeFunctionJsonFiles(com.fasterxml.jackson.databind.ObjectWriter objectWriter,
Map<String,FunctionConfiguration> configMap)
throws IOException
IOExceptionprotected void writeFunctionJsonFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter,
String functionName,
FunctionConfiguration config)
throws IOException
IOExceptionprotected void writeEmptyHostJsonFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter)
throws IOException
IOExceptionprotected void writeObjectToFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter,
Object object,
File targetFile)
throws IOException
IOExceptionprotected com.fasterxml.jackson.databind.ObjectWriter getObjectWriter()
protected void copyJarsToStageDirectory()
throws IOException
IOExceptionpublic List<org.apache.maven.model.Resource> getResources()
getResources in class com.microsoft.azure.maven.AbstractAppServiceMojoprotected FunctionCoreToolsHandler getFunctionCoreToolsHandler(CommandHandler commandHandler)
protected void installExtension(FunctionCoreToolsHandler handler, Set<BindingEnum> bindingEnums) throws Exception
Exceptionprotected Set<BindingEnum> getFunctionBindingEnums(Map<String,FunctionConfiguration> configMap)
protected boolean isInstallingExtensionNeeded(Set<BindingEnum> bindingTypes)
Copyright © 2019. All rights reserved.