Commit 0d3a79aa authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #9567 from eddumelendez:gh-7325

* pr/9567:
  Polish "Add prefix to all properties in maven plugin"
  Add prefix to all properties in maven plugin
parents 39c1757a e230952d
...@@ -45,7 +45,7 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo { ...@@ -45,7 +45,7 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
* {@code classifier} property. * {@code classifier} property.
* @since 1.2 * @since 1.2
*/ */
@Parameter @Parameter(property = "spring-boot.includes")
private List<Include> includes; private List<Include> includes;
/** /**
...@@ -54,21 +54,21 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo { ...@@ -54,21 +54,21 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
* {@code classifier} property. * {@code classifier} property.
* @since 1.1 * @since 1.1
*/ */
@Parameter @Parameter(property = "spring-boot.excludes")
private List<Exclude> excludes; private List<Exclude> excludes;
/** /**
* Comma separated list of groupId names to exclude (exact match). * Comma separated list of groupId names to exclude (exact match).
* @since 1.1 * @since 1.1
*/ */
@Parameter(property = "excludeGroupIds", defaultValue = "") @Parameter(property = "spring-boot.excludeGroupIds", defaultValue = "")
private String excludeGroupIds; private String excludeGroupIds;
/** /**
* Comma separated list of artifact names to exclude (exact match). * Comma separated list of artifact names to exclude (exact match).
* @since 1.1 * @since 1.1
*/ */
@Parameter(property = "excludeArtifactIds", defaultValue = "") @Parameter(property = "spring-boot.excludeArtifactIds", defaultValue = "")
private String excludeArtifactIds; private String excludeArtifactIds;
protected void setExcludes(List<Exclude> excludes) { protected void setExcludes(List<Exclude> excludes) {
......
...@@ -68,7 +68,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -68,7 +68,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* this feature and many more. * this feature and many more.
* @since 1.0 * @since 1.0
*/ */
@Parameter(property = "run.addResources", defaultValue = "false") @Parameter(property = "spring-boot.run.addResources", defaultValue = "false")
private boolean addResources = false; private boolean addResources = false;
/** /**
...@@ -76,14 +76,14 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -76,14 +76,14 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* forking a new JVM. * forking a new JVM.
* @since 1.0 * @since 1.0
*/ */
@Parameter(property = "run.agent") @Parameter(property = "spring-boot.run.agent")
private File[] agent; private File[] agent;
/** /**
* Flag to say that the agent requires -noverify. * Flag to say that the agent requires -noverify.
* @since 1.0 * @since 1.0
*/ */
@Parameter(property = "run.noverify") @Parameter(property = "spring-boot.run.noverify")
private boolean noverify = false; private boolean noverify = false;
/** /**
...@@ -92,7 +92,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -92,7 +92,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* started by forking a new JVM. * started by forking a new JVM.
* @since 1.5 * @since 1.5
*/ */
@Parameter(property = "run.workingDirectory") @Parameter(property = "spring-boot.run.workingDirectory")
private File workingDirectory; private File workingDirectory;
/** /**
...@@ -102,7 +102,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -102,7 +102,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* new JVM. * new JVM.
* @since 1.1 * @since 1.1
*/ */
@Parameter(property = "run.jvmArguments") @Parameter(property = "spring-boot.run.jvmArguments")
private String jvmArguments; private String jvmArguments;
/** /**
...@@ -110,7 +110,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -110,7 +110,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* separate multiple arguments. * separate multiple arguments.
* @since 1.0 * @since 1.0
*/ */
@Parameter(property = "run.arguments") @Parameter(property = "spring-boot.run.arguments")
private String[] arguments; private String[] arguments;
/** /**
...@@ -119,7 +119,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -119,7 +119,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* profiles. * profiles.
* @since 1.3 * @since 1.3
*/ */
@Parameter(property = "run.profiles") @Parameter(property = "spring-boot.run.profiles")
private String[] profiles; private String[] profiles;
/** /**
...@@ -127,7 +127,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -127,7 +127,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* contains a 'main' method will be used. * contains a 'main' method will be used.
* @since 1.0 * @since 1.0
*/ */
@Parameter @Parameter(property = "spring-boot.run.main-class")
private String mainClass; private String mainClass;
/** /**
...@@ -135,7 +135,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -135,7 +135,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* classpath. * classpath.
* @since 1.0 * @since 1.0
*/ */
@Parameter @Parameter(property = "spring-boot.run.folders")
private String[] folders; private String[] folders;
/** /**
...@@ -152,21 +152,21 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -152,21 +152,21 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* or if devtools is present. * or if devtools is present.
* @since 1.2 * @since 1.2
*/ */
@Parameter(property = "fork") @Parameter(property = "spring-boot.run.fork")
private Boolean fork; private Boolean fork;
/** /**
* Flag to include the test classpath when running. * Flag to include the test classpath when running.
* @since 1.3 * @since 1.3
*/ */
@Parameter(property = "useTestClasspath", defaultValue = "false") @Parameter(property = "spring-boot.run.useTestClasspath", defaultValue = "false")
private Boolean useTestClasspath; private Boolean useTestClasspath;
/** /**
* Skip the execution. * Skip the execution.
* @since 1.3.2 * @since 1.3.2
*/ */
@Parameter(property = "skip", defaultValue = "false") @Parameter(property = "spring-boot.run.skip", defaultValue = "false")
private boolean skip; private boolean skip;
@Override @Override
......
...@@ -90,7 +90,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo { ...@@ -90,7 +90,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
* Skip the execution. * Skip the execution.
* @since 1.2 * @since 1.2
*/ */
@Parameter(property = "skip", defaultValue = "false") @Parameter(property = "spring-boot.repackage.skip", defaultValue = "false")
private boolean skip; private boolean skip;
/** /**
......
...@@ -54,7 +54,7 @@ public class StopMojo extends AbstractMojo { ...@@ -54,7 +54,7 @@ public class StopMojo extends AbstractMojo {
* {@link StartMojo start} the process. * {@link StartMojo start} the process.
* @since 1.3 * @since 1.3
*/ */
@Parameter(property = "fork") @Parameter(property = "spring-boot.stop.fork")
private Boolean fork; private Boolean fork;
/** /**
...@@ -75,7 +75,7 @@ public class StopMojo extends AbstractMojo { ...@@ -75,7 +75,7 @@ public class StopMojo extends AbstractMojo {
* Skip the execution. * Skip the execution.
* @since 1.3.2 * @since 1.3.2
*/ */
@Parameter(property = "skip", defaultValue = "false") @Parameter(property = "spring-boot.stop.skip", defaultValue = "false")
private boolean skip; private boolean skip;
@Override @Override
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
specified on the command line as well, make sure to wrap that properly, that is: specified on the command line as well, make sure to wrap that properly, that is:
--- ---
mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005" mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
--- ---
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
a comma, that is: a comma, that is:
--- ---
mvn spring-boot:run -Drun.profiles=foo,bar mvn spring-boot:run -Dspring-boot.run.profiles=foo,bar
--- ---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment