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
This commit is contained in:
commit
0d3a79aaa3
|
|
@ -45,7 +45,7 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
|
|||
* {@code classifier} property.
|
||||
* @since 1.2
|
||||
*/
|
||||
@Parameter
|
||||
@Parameter(property = "spring-boot.includes")
|
||||
private List<Include> includes;
|
||||
|
||||
/**
|
||||
|
|
@ -54,21 +54,21 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
|
|||
* {@code classifier} property.
|
||||
* @since 1.1
|
||||
*/
|
||||
@Parameter
|
||||
@Parameter(property = "spring-boot.excludes")
|
||||
private List<Exclude> excludes;
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
@ -127,7 +127,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
|
|||
* contains a 'main' method will be used.
|
||||
* @since 1.0
|
||||
*/
|
||||
@Parameter
|
||||
@Parameter(property = "spring-boot.run.main-class")
|
||||
private String mainClass;
|
||||
|
||||
/**
|
||||
|
|
@ -135,7 +135,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
|
|||
* classpath.
|
||||
* @since 1.0
|
||||
*/
|
||||
@Parameter
|
||||
@Parameter(property = "spring-boot.run.folders")
|
||||
private String[] folders;
|
||||
|
||||
/**
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
|
|||
* Skip the execution.
|
||||
* @since 1.2
|
||||
*/
|
||||
@Parameter(property = "skip", defaultValue = "false")
|
||||
@Parameter(property = "spring-boot.repackage.skip", defaultValue = "false")
|
||||
private boolean skip;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
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 @@
|
|||
a comma, that is:
|
||||
|
||||
---
|
||||
mvn spring-boot:run -Drun.profiles=foo,bar
|
||||
mvn spring-boot:run -Dspring-boot.run.profiles=foo,bar
|
||||
---
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue