From f62392ae8f7d5a3fab95e0b72de2ca29f5fdaed9 Mon Sep 17 00:00:00 2001 From: ltheussl Date: Fri, 23 Sep 2005 23:19:37 +0000 Subject: [PATCH] MPCHANGES-25: Validate changes.xml git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@291220 13f79535-47bb-0310-9956-ffa450edef68 --- changes/plugin.jelly | 19 ++++ changes/src/plugin-resources/xsd/changes.xsd | 100 +++++++++++++++++++ changes/xdocs/changes.xml | 1 + changes/xdocs/goals.xml | 10 +- changes/xdocs/index.xml | 2 +- 5 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 changes/src/plugin-resources/xsd/changes.xsd diff --git a/changes/plugin.jelly b/changes/plugin.jelly index d901bc8c..7cc44105 100644 --- a/changes/plugin.jelly +++ b/changes/plugin.jelly @@ -24,6 +24,7 @@ xmlns:define="jelly:define" xmlns:util="jelly:util" xmlns:c="changes:transform" + xmlns:plugin="plugin" xmlns:doc="doc"> @@ -77,6 +78,24 @@ + + + + + + schema=${plugin.resources}/xsd/changes.xsd + file=${maven.docs.src}/changes.xml + + + + + + diff --git a/changes/src/plugin-resources/xsd/changes.xsd b/changes/src/plugin-resources/xsd/changes.xsd new file mode 100644 index 00000000..1084b143 --- /dev/null +++ b/changes/src/plugin-resources/xsd/changes.xsd @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/changes/xdocs/changes.xml b/changes/xdocs/changes.xml index 333aac36..89d0c2c2 100644 --- a/changes/xdocs/changes.xml +++ b/changes/xdocs/changes.xml @@ -25,6 +25,7 @@ + Validate changes.xml. Add multiple due-to/due-to-email support. Add multiple issue support. The encoding of changes.xml is not preserved after scm:prepare-release. diff --git a/changes/xdocs/goals.xml b/changes/xdocs/goals.xml index e7a29f4f..419457d4 100644 --- a/changes/xdocs/goals.xml +++ b/changes/xdocs/goals.xml @@ -43,7 +43,15 @@ project releases. - + + changes:validate + + Validates the changes.xml file. Note that this validates + against the new form of the action element as described + here, i.e., the description + of the change has to be contained in a description element. + + diff --git a/changes/xdocs/index.xml b/changes/xdocs/index.xml index 8043ff84..4cd11662 100644 --- a/changes/xdocs/index.xml +++ b/changes/xdocs/index.xml @@ -74,7 +74,7 @@ ]]> -

+

An alternative form of the <action> element allows you to specify several issues and/or several due-to elements: