Verify valid POM versions. Only "3" and "4" are currently allowed.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114318 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol
2003-11-13 20:45:07 +00:00
parent 9d8297aafc
commit d8034b7779
2 changed files with 18 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
xmlns:d="jelly:define"
xmlns:pom="pom"
xmlns:util="jelly:util"
xmlns:ant="jelly:ant"
xmlns:artifact="artifact">
<!-- set up pom tag library -->
@@ -19,10 +20,23 @@
<goal name="pom" description="Validate the Maven XML project descriptor"
prereqs="pom:validate"/>
<!--
========================================================================
Verify validity of <pomVersion> element.
========================================================================
-->
<goal name="pom:verify-version">
<j:if test="${not(pom.pomVersion == '3' or pom.pomVersion == '4')}">
<ant:fail>POM version should be either "3" or "4", found "${pom.pomVersion}".</ant:fail>
</j:if>
</goal>
<!-- ================================================================== -->
<!-- V A L I D A T E P O M -->
<!-- ================================================================== -->
<goal name="pom:validate"
<goal name="pom:validate" prereqs="pom:verify-version"
description="Validate the Maven XML project descriptor">
<path id="validate.path">

View File

@@ -7,6 +7,9 @@
<body>
<releases>
<release version="1.4" date="in CVS">
<action dev="vmassol" type="add">
Verify valid POM versions. Only "3" and "4" are currently allowed.
</action>
<action dev="vmassol" type="add">
Added support for validating different POM versions.
</action>