Make pom:validate use the new plugin:validate-xml tag
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@290356 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b773dda43e
commit
47ea8bae72
@ -22,6 +22,7 @@
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:d="jelly:define"
|
||||
xmlns:pom="pom"
|
||||
xmlns:plugin="plugin"
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:ant="jelly:ant"
|
||||
xmlns:artifact="artifact">
|
||||
@ -54,17 +55,10 @@
|
||||
<!-- ================================================================== -->
|
||||
<!-- V A L I D A T E P O M -->
|
||||
<!-- ================================================================== -->
|
||||
<goal name="pom:validate" prereqs="pom:verify-version"
|
||||
description="Validate the Maven XML project descriptor">
|
||||
<goal
|
||||
name="pom:validate"
|
||||
description="Validate the Maven XML project descriptor">
|
||||
|
||||
<path id="validate.path">
|
||||
<pathelement path="${plugin.getDependencyPath('isorelax')}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('thaiopensource:jing')}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('xml-apis')}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('xerces')}"/>
|
||||
</path>
|
||||
|
||||
<!-- Support Maven 1.0 rc1 and before which only had a single XSD file. -->
|
||||
<j:set var="xsd"
|
||||
value="${maven.home}/maven-project-${pom.pomVersion}.xsd"/>
|
||||
<util:file var="xsdAsFile" name="${xsd}"/>
|
||||
@ -72,15 +66,15 @@
|
||||
<j:set var="xsd"
|
||||
value="${maven.home}/maven-project.xsd"/>
|
||||
</j:if>
|
||||
|
||||
<java classname="com.thaiopensource.relaxng.util.Driver" fork="true">
|
||||
<classpath refid="validate.path"/>
|
||||
<arg value="${xsd}"/>
|
||||
<arg value="${pom.file.canonicalPath}"/>
|
||||
</java>
|
||||
<echo>xsd file: ${xsd}</echo>
|
||||
|
||||
<plugin:validate-xml
|
||||
schema="${xsd}"
|
||||
file="${pom.file.canonicalPath}"/>
|
||||
|
||||
</goal>
|
||||
|
||||
|
||||
|
||||
<goal name="pom:contentvalidate"
|
||||
description="Validate the content of the Maven POM">
|
||||
|
||||
|
||||
@ -87,32 +87,10 @@
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>1.4-dev-8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xml-apis</groupId>
|
||||
<artifactId>xml-apis</artifactId>
|
||||
<version>1.0.b2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>maven</groupId>
|
||||
<artifactId>maven</artifactId>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>isorelax</groupId>
|
||||
<artifactId>isorelax</artifactId>
|
||||
<version>20030108</version>
|
||||
</dependency>
|
||||
<!-- validator being used -->
|
||||
|
||||
<dependency>
|
||||
<groupId>thaiopensource</groupId>
|
||||
<artifactId>jing</artifactId>
|
||||
<version>20030619</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xerces</artifactId>
|
||||
<version>2.4.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user