|
|
|
@ -64,9 +64,9 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Add maven resources to the classpath directly, this allows live in-place editing of |
|
|
|
* Add maven resources to the classpath directly, this allows live in-place editing of |
|
|
|
* resources. Duplicate resources are removed from {@code target/classes} to prevent |
|
|
|
* resources. Duplicate resources are removed from {@code target/classes} to prevent |
|
|
|
* them to appear twice if {@code ClassLoader.getResources()} is called. Please consider |
|
|
|
* them to appear twice if {@code ClassLoader.getResources()} is called. Please |
|
|
|
* adding {@code spring-boot-devtools} to your project instead as it provides this feature |
|
|
|
* consider adding {@code spring-boot-devtools} to your project instead as it provides |
|
|
|
* and many more. |
|
|
|
* this feature and many more. |
|
|
|
* @since 1.0 |
|
|
|
* @since 1.0 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Parameter(property = "run.addResources", defaultValue = "false") |
|
|
|
@Parameter(property = "run.addResources", defaultValue = "false") |
|
|
|
@ -90,8 +90,8 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* JVM arguments that should be associated with the forked process used to run the |
|
|
|
* JVM arguments that should be associated with the forked process used to run the |
|
|
|
* application. On command line, make sure to wrap multiple values between quotes. |
|
|
|
* application. On command line, make sure to wrap multiple values between quotes. |
|
|
|
* NOTE: the use of JVM arguments means that processes will be started by forking |
|
|
|
* NOTE: the use of JVM arguments means that processes will be started by forking a |
|
|
|
* a new JVM. |
|
|
|
* new JVM. |
|
|
|
* @since 1.1 |
|
|
|
* @since 1.1 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Parameter(property = "run.jvmArguments") |
|
|
|
@Parameter(property = "run.jvmArguments") |
|
|
|
@ -214,10 +214,10 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { |
|
|
|
private void run(String startClassName) |
|
|
|
private void run(String startClassName) |
|
|
|
throws MojoExecutionException, MojoFailureException { |
|
|
|
throws MojoExecutionException, MojoFailureException { |
|
|
|
findAgent(); |
|
|
|
findAgent(); |
|
|
|
boolean forkEnabled = isFork(); |
|
|
|
boolean fork = isFork(); |
|
|
|
this.project.getProperties().setProperty("_spring.boot.fork.enabled", |
|
|
|
this.project.getProperties().setProperty("_spring.boot.fork.enabled", |
|
|
|
Boolean.toString(forkEnabled)); |
|
|
|
Boolean.toString(fork)); |
|
|
|
if (forkEnabled) { |
|
|
|
if (fork) { |
|
|
|
doRunWithForkedJvm(startClassName); |
|
|
|
doRunWithForkedJvm(startClassName); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
|