类 AbstractRunMojo

    • 方法详细资料

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        抛出:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • isFork

        protected boolean isFork()
        Specify if the application process should be forked.
        返回:
        true if the application process should be forked
      • enableForkByDefault

        protected boolean enableForkByDefault()
        Specify if fork should be enabled by default.
        返回:
        true if fork should be enabled by default
        另请参阅:
        logDisabledFork()
      • logDisabledFork

        protected void logDisabledFork()
        Log a warning indicating that fork mode has been explicitly disabled while some conditions are present that require to enable it.
        另请参阅:
        enableForkByDefault()
      • runWithForkedJvm

        protected abstract void runWithForkedJvm​(File workingDirectory,
                                                 List<String> args)
                                          throws org.apache.maven.plugin.MojoExecutionException,
                                                 org.apache.maven.plugin.MojoFailureException
        Run with a forked VM, using the specified command line arguments.
        参数:
        workingDirectory - the working directory of the forked JVM
        args - the arguments (JVM arguments and application arguments)
        抛出:
        org.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errors
        org.apache.maven.plugin.MojoFailureException - in case of MOJO failures
      • runWithMavenJvm

        protected abstract void runWithMavenJvm​(String startClassName,
                                                String... arguments)
                                         throws org.apache.maven.plugin.MojoExecutionException,
                                                org.apache.maven.plugin.MojoFailureException
        Run with the current VM, using the specified arguments.
        参数:
        startClassName - the class to run
        arguments - the class arguments
        抛出:
        org.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errors
        org.apache.maven.plugin.MojoFailureException - in case of MOJO failures
      • resolveApplicationArguments

        protected org.springframework.boot.maven.RunArguments resolveApplicationArguments()
        Resolve the application arguments to use.
        返回:
        a RunArguments defining the application arguments
      • resolveJvmArguments

        protected org.springframework.boot.maven.RunArguments resolveJvmArguments()
        Resolve the JVM arguments to use.
        返回:
        a RunArguments defining the JVM arguments
      • getClassPathUrls

        protected URL[] getClassPathUrls()
                                  throws org.apache.maven.plugin.MojoExecutionException
        抛出:
        org.apache.maven.plugin.MojoExecutionException