Author: khmarbaise
Date: Thu Oct  1 19:39:10 2015
New Revision: 1706310

URL: http://svn.apache.org/viewvc?rev=1706310&view=rev
Log:
[MSOURCES-82] Make naming of properties consistent to the plugin name.
Make naming of properties maven.source.* added note to the plugin
home page.

Modified:
    
maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
    maven/plugins/trunk/maven-source-plugin/src/site/apt/index.apt.vm

Modified: 
maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java?rev=1706310&r1=1706309&r2=1706310&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
 (original)
+++ 
maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
 Thu Oct  1 19:39:10 2015
@@ -125,7 +125,7 @@ public abstract class AbstractSourceJarM
     /**
      * 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 @@ public abstract class AbstractSourceJarM
      *
      * @since 2.0.4
      */
-    @Parameter( property = "source.excludeResources", defaultValue = "false" )
+    @Parameter( property = "maven.source.excludeResources", defaultValue = 
"false" )
     protected boolean excludeResources;
 
     /**
@@ -142,7 +142,7 @@ public abstract class AbstractSourceJarM
      *
      * @since 2.1
      */
-    @Parameter( property = "source.includePom", defaultValue = "false" )
+    @Parameter( property = "maven.source.includePom", defaultValue = "false" )
     protected boolean includePom;
 
     /**
@@ -176,7 +176,7 @@ public abstract class AbstractSourceJarM
      *
      * @since 2.1
      */
-    @Parameter( property = "source.forceCreation", defaultValue = "false" )
+    @Parameter( property = "maven.source.forceCreation", defaultValue = 
"false" )
     private boolean forceCreation;
 
     /**
@@ -185,7 +185,7 @@ public abstract class AbstractSourceJarM
      *
      * @since 2.2
      */
-    @Parameter( property = "source.skip", defaultValue = "false" )
+    @Parameter( property = "maven.source.skip", defaultValue = "false" )
     private boolean skipSource;
 
     /**

Modified: maven/plugins/trunk/maven-source-plugin/src/site/apt/index.apt.vm
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-source-plugin/src/site/apt/index.apt.vm?rev=1706310&r1=1706309&r2=1706310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-source-plugin/src/site/apt/index.apt.vm (original)
+++ maven/plugins/trunk/maven-source-plugin/src/site/apt/index.apt.vm Thu Oct  
1 19:39:10 2015
@@ -31,6 +31,12 @@ ${project.name}
  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:


Reply via email to