Add prefix to all properties in maven plugin

This commit add prefix `spring-boot` to all Mojo's properties.

See gh-9567
This commit is contained in:
Eddú Meléndez
2017-06-21 00:17:56 -05:00
committed by Stephane Nicoll
parent 39c1757a96
commit 4510be0f8f
4 changed files with 15 additions and 15 deletions

View File

@@ -61,14 +61,14 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
* Comma separated list of groupId names to exclude (exact match).
* @since 1.1
*/
@Parameter(property = "excludeGroupIds", defaultValue = "")
@Parameter(property = "spring-boot.excludeGroupIds", defaultValue = "")
private String excludeGroupIds;
/**
* Comma separated list of artifact names to exclude (exact match).
* @since 1.1
*/
@Parameter(property = "excludeArtifactIds", defaultValue = "")
@Parameter(property = "spring-boot.excludeArtifactIds", defaultValue = "")
private String excludeArtifactIds;
protected void setExcludes(List<Exclude> excludes) {

View File

@@ -68,7 +68,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* this feature and many more.
* @since 1.0
*/
@Parameter(property = "run.addResources", defaultValue = "false")
@Parameter(property = "spring-boot.run.addResources", defaultValue = "false")
private boolean addResources = false;
/**
@@ -76,14 +76,14 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* forking a new JVM.
* @since 1.0
*/
@Parameter(property = "run.agent")
@Parameter(property = "spring-boot.run.agent")
private File[] agent;
/**
* Flag to say that the agent requires -noverify.
* @since 1.0
*/
@Parameter(property = "run.noverify")
@Parameter(property = "spring-boot.run.noverify")
private boolean noverify = false;
/**
@@ -92,7 +92,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* started by forking a new JVM.
* @since 1.5
*/
@Parameter(property = "run.workingDirectory")
@Parameter(property = "spring-boot.run.workingDirectory")
private File workingDirectory;
/**
@@ -102,7 +102,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* new JVM.
* @since 1.1
*/
@Parameter(property = "run.jvmArguments")
@Parameter(property = "spring-boot.run.jvmArguments")
private String jvmArguments;
/**
@@ -110,7 +110,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* separate multiple arguments.
* @since 1.0
*/
@Parameter(property = "run.arguments")
@Parameter(property = "spring-boot.run.arguments")
private String[] arguments;
/**
@@ -119,7 +119,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* profiles.
* @since 1.3
*/
@Parameter(property = "run.profiles")
@Parameter(property = "spring-boot.run.profiles")
private String[] profiles;
/**
@@ -152,21 +152,21 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* or if devtools is present.
* @since 1.2
*/
@Parameter(property = "fork")
@Parameter(property = "spring-boot.run.fork")
private Boolean fork;
/**
* Flag to include the test classpath when running.
* @since 1.3
*/
@Parameter(property = "useTestClasspath", defaultValue = "false")
@Parameter(property = "spring-boot.run.useTestClasspath", defaultValue = "false")
private Boolean useTestClasspath;
/**
* Skip the execution.
* @since 1.3.2
*/
@Parameter(property = "skip", defaultValue = "false")
@Parameter(property = "spring-boot.run.skip", defaultValue = "false")
private boolean skip;
@Override

View File

@@ -90,7 +90,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
* Skip the execution.
* @since 1.2
*/
@Parameter(property = "skip", defaultValue = "false")
@Parameter(property = "spring-boot.it.skip", defaultValue = "false")
private boolean skip;
/**

View File

@@ -54,7 +54,7 @@ public class StopMojo extends AbstractMojo {
* {@link StartMojo start} the process.
* @since 1.3
*/
@Parameter(property = "fork")
@Parameter(property = "spring-boot.stop.fork")
private Boolean fork;
/**
@@ -75,7 +75,7 @@ public class StopMojo extends AbstractMojo {
* Skip the execution.
* @since 1.3.2
*/
@Parameter(property = "skip", defaultValue = "false")
@Parameter(property = "spring-boot.stop.skip", defaultValue = "false")
private boolean skip;
@Override