Package org.springframework.boot.maven
Class AbstractApplicationRunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractRunMojo
org.springframework.boot.maven.AbstractApplicationRunMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
Base class to run a spring application.
-
Field Summary
Fields inherited from class org.springframework.boot.maven.AbstractRunMojo
classesDirectory, projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URL[]protected voidRun with a forked VM, using the specified class name.protected abstract voidRun with a forked VM, using the specified command line arguments.Methods inherited from class org.springframework.boot.maven.AbstractRunMojo
addArgs, addClasspath, addDependencies, addJvmArgs, addProjectClasses, addUserDefinedDirectories, execute, getJavaExecutable, getStartClass, hasTerminatedSuccessfully, resolveApplicationArguments, resolveEnvVariables, resolveJvmArgumentsMethods inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getFilters, setExcludeGroupIds, setExcludes, setIncludesMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractApplicationRunMojo
public AbstractApplicationRunMojo()
-
-
Method Details
-
run
protected void run(File workingDirectory, String startClassName, Map<String, String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractRunMojoRun with a forked VM, using the specified class name.- Specified by:
runin classAbstractRunMojo- Parameters:
workingDirectory- the working directory of the forked JVMstartClassName- the name of the class to executeenvironmentVariables- the environment variables- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of MOJO execution errorsorg.apache.maven.plugin.MojoFailureException- in case of MOJO failures
-
run
protected abstract void run(File workingDirectory, List<String> args, Map<String, String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionRun with a forked VM, using the specified command line arguments.- Parameters:
workingDirectory- the working directory of the forked JVMargs- the arguments (JVM arguments and application arguments)environmentVariables- the environment variables- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of MOJO execution errorsorg.apache.maven.plugin.MojoFailureException- in case of MOJO failures
-
getClassPathUrls
- Specified by:
getClassPathUrlsin classAbstractRunMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-