[MSOURCES-82] Make naming of properties consistent to the plugin name.
Make naming of properties maven.source.* added note to the plugin
home page.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1706310 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
index 9555444..0d9f522 100644
--- a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
@@ -125,7 +125,7 @@
/**
* Specifies whether or not to attach the artifact to the project
*/
- @Parameter( property = "attach", defaultValue = "true" )
+ @Parameter( property = "maven.source.attach", defaultValue = "true" )
private boolean attach;
/**
@@ -134,7 +134,7 @@
*
* @since 2.0.4
*/
- @Parameter( property = "source.excludeResources", defaultValue = "false" )
+ @Parameter( property = "maven.source.excludeResources", defaultValue = "false" )
protected boolean excludeResources;
/**
@@ -142,7 +142,7 @@
*
* @since 2.1
*/
- @Parameter( property = "source.includePom", defaultValue = "false" )
+ @Parameter( property = "maven.source.includePom", defaultValue = "false" )
protected boolean includePom;
/**
@@ -176,7 +176,7 @@
*
* @since 2.1
*/
- @Parameter( property = "source.forceCreation", defaultValue = "false" )
+ @Parameter( property = "maven.source.forceCreation", defaultValue = "false" )
private boolean forceCreation;
/**
@@ -185,7 +185,7 @@
*
* @since 2.2
*/
- @Parameter( property = "source.skip", defaultValue = "false" )
+ @Parameter( property = "maven.source.skip", defaultValue = "false" )
private boolean skipSource;
/**
diff --git a/src/site/apt/index.apt.vm b/src/site/apt/index.apt.vm
index 2d8cf88..4d91d85 100644
--- a/src/site/apt/index.apt.vm
+++ b/src/site/apt/index.apt.vm
@@ -31,6 +31,12 @@
The Source Plugin creates a jar archive of the source files of the current project. The jar file is, by default,
created in the project's target directory.
+* Important Hint
+
+ Starting with version 3.0.0 of the plugin all properties which could be used via command line
+ have been named based on the following schema <<maven.source.*>>. Further details can be found
+ in the goal documentations.
+
* Goals Overview
The Source Plugin has five goals: