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, project
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected URL[]
protected void
Run with a forked VM, using the specified class name.protected abstract void
Run 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, resolveJvmArguments
Methods inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getFilters, setExcludeGroupIds, setExcludes, setIncludes
Methods 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:AbstractRunMojo
Run with a forked VM, using the specified class name.- Specified by:
run
in 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:
getClassPathUrls
in classAbstractRunMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-