Class RunMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="run")
    public class RunMojo
    extends AbstractFunctionMojo
    Run Azure Java Functions locally. Azure Functions Core Tools is required to be installed first.
    • Field Detail

      • JAVA_9

        private static final org.apache.maven.artifact.versioning.ComparableVersion JAVA_9
      • FUNC_3

        private static final org.apache.maven.artifact.versioning.ComparableVersion FUNC_3
      • MINIMUM_JAVA_9_SUPPORTED_VERSION

        private static final org.apache.maven.artifact.versioning.ComparableVersion MINIMUM_JAVA_9_SUPPORTED_VERSION
      • MINIMUM_JAVA_9_SUPPORTED_VERSION_V2

        private static final org.apache.maven.artifact.versioning.ComparableVersion MINIMUM_JAVA_9_SUPPORTED_VERSION_V2
      • localDebugConfig

        @Parameter(property="localDebugConfig",
                   defaultValue="transport=dt_socket,server=y,suspend=n,address=5005")
        protected String localDebugConfig
        Config String for local debug
        Since:
        1.0.0-beta-7
      • funcPort

        @Parameter(property="funcPort",
                   defaultValue="7071")
        protected Integer funcPort
        Config port for function local host
        Since:
        1.22.0
    • Constructor Detail

      • RunMojo

        public RunMojo()
    • Method Detail

      • getLocalDebugConfig

        public String getLocalDebugConfig()
      • setLocalDebugConfig

        public void setLocalDebugConfig​(String localDebugConfig)
      • doExecute

        protected void doExecute()
                          throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Specified by:
        doExecute in class com.microsoft.azure.maven.AbstractAzureMojo
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
      • checkStageDirectoryExistence

        protected void checkStageDirectoryExistence()
                                             throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
      • checkRuntimeExistence

        protected void checkRuntimeExistence​(com.microsoft.azure.toolkit.lib.legacy.function.handlers.CommandHandler handler)
                                      throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
      • runFunctions

        protected void runFunctions​(com.microsoft.azure.toolkit.lib.legacy.function.handlers.CommandHandler handler)
                             throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
      • checkRuntimeCompatibility

        private void checkRuntimeCompatibility​(com.microsoft.azure.toolkit.lib.legacy.function.handlers.CommandHandler handler)
                                        throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
      • getCheckRuntimeCommand

        protected String getCheckRuntimeCommand()
      • getStartFunctionHostCommand

        protected String getStartFunctionHostCommand()
      • getStartFunctionHostWithDebugCommand

        protected String getStartFunctionHostWithDebugCommand()