You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2014/10/12 00:11:22 UTC

svn commit: r1631132 - /maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt

Author: khmarbaise
Date: Sat Oct 11 22:11:21 2014
New Revision: 1631132

URL: http://svn.apache.org/r1631132
Log:
- Moved to better location and added pom excerpt.

Modified:
    maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt

Modified: maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt?rev=1631132&r1=1631131&r2=1631132&view=diff
==============================================================================
--- maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt (original)
+++ maven/site/trunk/content/apt/guides/plugin/guide-java-plugin-development.apt Sat Oct 11 22:11:21 2014
@@ -482,32 +482,6 @@ mvn archetype:generate \
   used as the value to be assigned to the parameter.  For <<<char>>> and
   <<<Character>>> parameters, only the first character of the text is used.
 
-** Parameter Types With Multiple Values
-
-  Listed below are the various types of composite objects which can be used as
-  parameters in your mojos, along with any rules on how the values in the
-  POM are interpreted.  In general, the class of the object created to hold the
-  parameter value (as well as the class for each element within the parameter
-  value) is determined as follows (the first step which yields a valid class
-  is used):
-
-  [[1]] If the XML element contains an <<<implementation>>> hint attribute, that is used
-
-  [[2]] If the XML tag contains a <<<.>>>, try that as a fully qualified class name
-
-  [[3]] Try the XML tag (with capitalized first letter) as a class in the same package as the mojo/object being
-        configured
-
-  [[4]] For arrays, use the component type of the array (for example, use <<<String>>>
-        for a <<<String[]>>> parameter); for collections and maps, use the
-        class specified in the mojo configuration for the collection or map;
-        use <<<String>>> for entries in a collection and values in a map
-
-  []
-
-  Once the type for the element is defined, the text in the XML file is
-  converted to the appropriate type of object
-
 *** Enums
 
   Enumeration type parameters can also be used. First you need to define
@@ -528,6 +502,12 @@ mvn archetype:generate \
     private Color myColor;
 +-----+
 
+  So lets have a look like you can use such enumeration in your pom configuration:
+
++-----+
+<myColor>GREEN</myColor>
++-----+
+
   You can also use elements from the enumeration type as defaultValues like the
   following:
 
@@ -546,6 +526,33 @@ mvn archetype:generate \
 +-----+
 
 
+** Parameter Types With Multiple Values
+
+  Listed below are the various types of composite objects which can be used as
+  parameters in your mojos, along with any rules on how the values in the
+  POM are interpreted.  In general, the class of the object created to hold the
+  parameter value (as well as the class for each element within the parameter
+  value) is determined as follows (the first step which yields a valid class
+  is used):
+
+  [[1]] If the XML element contains an <<<implementation>>> hint attribute, that is used
+
+  [[2]] If the XML tag contains a <<<.>>>, try that as a fully qualified class name
+
+  [[3]] Try the XML tag (with capitalized first letter) as a class in the same package as the mojo/object being
+        configured
+
+  [[4]] For arrays, use the component type of the array (for example, use <<<String>>>
+        for a <<<String[]>>> parameter); for collections and maps, use the
+        class specified in the mojo configuration for the collection or map;
+        use <<<String>>> for entries in a collection and values in a map
+
+  []
+
+  Once the type for the element is defined, the text in the XML file is
+  converted to the appropriate type of object
+
+
 *** Arrays
 
   Array type parameters are configured by specifying the parameter multiple