From b0bd6ac521a83b5f3ce28481b612b6576a11e236 Mon Sep 17 00:00:00 2001 From: ltheussl Date: Fri, 18 Nov 2005 19:24:12 +0000 Subject: [PATCH] Remove xslt transform, it doesn't work with java 5 (?). Extended poms comply with maven-project-3.xsd (in core), root poms with pom-strict-3.xsd. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@345542 13f79535-47bb-0310-9956-ffa450edef68 --- pom/plugin.jelly | 21 ++++--------------- pom/src/plugin-resources/xsd/pom-strict-3.xsd | 2 +- pom/src/plugin-resources/xsd/readme.txt | 18 +++------------- 3 files changed, 8 insertions(+), 33 deletions(-) diff --git a/pom/plugin.jelly b/pom/plugin.jelly index d3d8ed29..dbb7c0a4 100644 --- a/pom/plugin.jelly +++ b/pom/plugin.jelly @@ -61,7 +61,8 @@ name="pom:validate" description="Validate the Maven XML project descriptor"> - + @@ -82,22 +83,8 @@ *** This parent pom has to be validated separately! - - - - - - - - - - - - + Using xsd file: ${xsd} diff --git a/pom/src/plugin-resources/xsd/pom-strict-3.xsd b/pom/src/plugin-resources/xsd/pom-strict-3.xsd index 084f3bc2..0be72844 100644 --- a/pom/src/plugin-resources/xsd/pom-strict-3.xsd +++ b/pom/src/plugin-resources/xsd/pom-strict-3.xsd @@ -17,7 +17,7 @@ */ --> - + diff --git a/pom/src/plugin-resources/xsd/readme.txt b/pom/src/plugin-resources/xsd/readme.txt index 8e7fc082..444a42f9 100644 --- a/pom/src/plugin-resources/xsd/readme.txt +++ b/pom/src/plugin-resources/xsd/readme.txt @@ -1,17 +1,5 @@ Every pom that does not extend another one (a 'root' pom) has to comply -with the schema ${plugin.resources}/xsd/pom-strict-3.xsd. +with the schema ${plugin.resources}/xsd/pom-strict-${pom.pomVersion}.xsd. -Running "pom:validate" on a child pom (a pom that extends another one) -will create another schema ${plugin.resources}/xsd/pom-extend-3.xsd -(if this doesn't exist already) via an xslt transformation using the -stylesheet ${plugin.resources}/xsl/pom-extend-3.xsl. This just replaces -all 'minOccurs="1"' attributes in pom-strict-3.xsd by 'minOccurs="0"'. - - -Note: - -* Every element that is required in a root pom but is not obligatory - in a child pom, needs a 'minOccurs="1"'. - -* Elements that are required in both parent and child poms, must not have - a 'minOccurs' attribute (so they default to 1). +A child pom (a pom that extends another one) has to comply +with the schema ${maven.home}/maven-project-${pom.pomVersion}.xsd.