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 2022/02/13 16:50:04 UTC

[maven] 01/01: [MNG-7413] fix anchor for XML elements with same name but not content

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch MNG-7413
in repository https://gitbox.apache.org/repos/asf/maven.git

commit ca01efa766b3c4c325cdf51c9cbe66aa9f17e34e
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Feb 13 17:49:56 2022 +0100

    [MNG-7413] fix anchor for XML elements with same name but not content
---
 maven-model/src/main/mdo/maven.mdo | 18 +++++++++---------
 pom.xml                            |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/maven-model/src/main/mdo/maven.mdo b/maven-model/src/main/mdo/maven.mdo
index 5242d30..115bcde 100644
--- a/maven-model/src/main/mdo/maven.mdo
+++ b/maven-model/src/main/mdo/maven.mdo
@@ -43,8 +43,8 @@
   |   definition of these types
   |
 -->
-<model xmlns="http://codehaus-plexus.github.io/MODELLO/1.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://codehaus-plexus.github.io/MODELLO/1.4.0 http://codehaus-plexus.github.io/modello/xsd/modello-1.4.0.xsd"
+<model xmlns="http://codehaus-plexus.github.io/MODELLO/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://codehaus-plexus.github.io/MODELLO/2.0.0 https://codehaus-plexus.github.io/modello/xsd/modello-2.0.0.xsd"
   xml.namespace="http://maven.apache.org/POM/${version}"
   xml.schemaLocation="https://maven.apache.org/xsd/maven-${version}.xsd">
   <id>maven</id>
@@ -642,11 +642,11 @@
         </field>
       </fields>
     </class>
-    <class>
+    <class xdoc.anchorName="profile_build">
       <name>BuildBase</name>
       <version>3.0.0+</version>
       <superClass>PluginConfiguration</superClass>
-      <description>Generic informations for a build.</description>
+      <description>Build configuration in a profile.</description>
       <fields>
         <field>
           <name>defaultGoal</name>
@@ -1937,12 +1937,12 @@
       </fields>
     </class>
 
-    <class>
+    <class xdoc.anchorName="deployment_repository">
       <name>DeploymentRepository</name>
       <superClass>Repository</superClass>
       <version>4.0.0+</version>
-      <description>Repository contains the information needed for deploying to the remote
-        repository.</description>
+      <description>Deployment Repository contains the information needed for deploying to the remote
+        repository, which adds uniqueVersion property to usual repositories for download.</description>
       <fields>
         <field>
           <name>uniqueVersion</name>
@@ -2807,13 +2807,13 @@
     </class>
     -->
     <!-- /BuildProfile support -->
-    <class xml.tagName="plugin" java.clone="deep">
+    <class xml.tagName="plugin" xdoc.anchorName="report_plugin" java.clone="deep">
       <name>ReportPlugin</name>
       <version>4.0.0+</version>
       <superClass>ConfigurationContainer</superClass>
       <description>
         <![CDATA[
-        The <code>&lt;plugin&gt;</code> element contains informations required for a report plugin.
+        The <code>&lt;plugin&gt;</code> element in <code>&lt;reporting&gt;&lt;plugins&gt;</code> contains informations required for a report plugin.
         ]]>
       </description>
       <fields>
diff --git a/pom.xml b/pom.xml
index 3583a87..c3a185a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,7 +62,7 @@ under the License.
     <wagonVersion>3.5.1</wagonVersion>
     <securityDispatcherVersion>2.0</securityDispatcherVersion>
     <cipherVersion>2.0</cipherVersion>
-    <modelloVersion>1.11</modelloVersion>
+    <modelloVersion>2.0.0</modelloVersion>
     <jxpathVersion>1.3</jxpathVersion>
     <resolverVersion>1.6.3</resolverVersion>
     <slf4jVersion>1.7.32</slf4jVersion>