You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2015/03/06 02:04:30 UTC

maven git commit: [MNG-5771] enabled modello xdoc/xsd for core extensions mdo, with minimum intro. Still need to improve descriptions and info in mdo

Repository: maven
Updated Branches:
  refs/heads/master 07b8477b9 -> 5947c4ef7


[MNG-5771] enabled modello xdoc/xsd for core extensions mdo, with
minimum intro.
Still need to improve descriptions and info in mdo

Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/5947c4ef
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/5947c4ef
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/5947c4ef

Branch: refs/heads/master
Commit: 5947c4ef71651ba7621ecfa490923bc9d6a34d7d
Parents: 07b8477
Author: Hervé Boutemy <hb...@apache.org>
Authored: Thu Mar 5 21:24:43 2015 +0100
Committer: Hervé Boutemy <hb...@apache.org>
Committed: Fri Mar 6 02:04:17 2015 +0100

----------------------------------------------------------------------
 maven-embedder/pom.xml                          | 19 +++--------------
 maven-embedder/src/main/mdo/core-extensions.mdo | 22 ++++++++++++++++----
 2 files changed, 21 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/5947c4ef/maven-embedder/pom.xml
----------------------------------------------------------------------
diff --git a/maven-embedder/pom.xml b/maven-embedder/pom.xml
index 6700057..7553982 100644
--- a/maven-embedder/pom.xml
+++ b/maven-embedder/pom.xml
@@ -134,23 +134,10 @@
         <artifactId>modello-maven-plugin</artifactId>
         <configuration>
           <version>1.0.0</version>
+          <models>
+            <model>src/main/mdo/core-extensions.mdo</model>
+          </models>
         </configuration>
-        <executions>
-          <execution>
-            <id>standard</id>
-            <configuration>
-              <models>
-                <model>src/main/mdo/core-extensions.mdo</model>
-              </models>
-            </configuration>
-          </execution>
-          <execution>
-            <id>site-docs</id>
-            <configuration>
-              <models/>
-            </configuration>
-          </execution>
-        </executions>
       </plugin>
     </plugins>
   </build>

http://git-wip-us.apache.org/repos/asf/maven/blob/5947c4ef/maven-embedder/src/main/mdo/core-extensions.mdo
----------------------------------------------------------------------
diff --git a/maven-embedder/src/main/mdo/core-extensions.mdo b/maven-embedder/src/main/mdo/core-extensions.mdo
index f4b0215..6b75973 100644
--- a/maven-embedder/src/main/mdo/core-extensions.mdo
+++ b/maven-embedder/src/main/mdo/core-extensions.mdo
@@ -20,9 +20,17 @@
 
 -->
 
-<model xmlns="http://modello.codehaus.org/MODELLO/1.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-  <id>CoreExtensions</id>
-  <name>CoreExtensions</name>
+<model xmlns="http://modello.codehaus.org/MODELLO/1.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.4.0 http://modello.codehaus.org/xsd/modello-1.4.0.xsd"
+  xml.namespace="http://maven.apache.org/EXTENSIONS/${version}"
+  xml.schemaLocation="http://maven.apache.org/xsd/core-extensions-${version}.xsd">
+
+  <id>core-extensions</id>
+  <name>Core Extensions</name>
+  <description><![CDATA[
+  <p>This is a reference for the Core Extensions descriptor.</p>
+  <p>The default location for the Core Extensions descriptor file is <code>${maven.projectBasedir}/.mvn/extensions.xml</code></p>
+  ]]></description>
 
   <defaults>
     <default>
@@ -32,12 +40,14 @@
   </defaults>
 
   <classes>
-    <class rootElement="true" xml.tagName="extensions">
+    <class rootElement="true" xml.tagName="extensions" xsd.compositor="sequence">
       <name>CoreExtensions</name>
+      <description>Extensions to load.</description>
       <version>1.0.0+</version>
       <fields>
         <field>
           <name>extensions</name>
+          <description>A set of build extensions to use from this project.</description>
           <version>1.0.0+</version>
           <association xml.itemsStyle="flat">
             <type>CoreExtension</type>
@@ -48,22 +58,26 @@
     </class>
     <class xml.tagName="extension">
       <name>CoreExtension</name>
+      <description>Describes a build extension to utilise.</description>
       <version>1.0.0+</version>
       <fields>
         <field>
           <name>groupId</name>
+          <description>The group ID of the extension's artifact.</description>
           <version>1.0.0+</version>
           <required>true</required>
           <type>String</type>
         </field>
         <field>
           <name>artifactId</name>
+          <description>The artifact ID of the extension.</description>
           <version>1.0.0+</version>
           <required>true</required>
           <type>String</type>
         </field>
         <field>
           <name>version</name>
+          <description>The version of the extension.</description>
           <version>1.0.0+</version>
           <required>true</required>
           <type>String</type>