Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

levigo/xml-validator-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Maven Plugin for XML validation

The XML Validator Maven Plugin allows you to perform an XML validation during an Apache Maven build.

Build Status

Build Status

Features

The key features of this maven plugin are:

  • Ensures that the given file is a well-formed XML document
  • Ensures that it conforms a given grammar. Supported grammar languages:
    • XML Schema
    • RelaxNG
    • Schematron
    • NVDL

License

This XML Validator Maven Plugin is licensed under the BSD 3-Clause License. Alternatively see here.

Support

If you find a bug or have a comment, please use the github issue tracker. Pull requests are always welcome and appreciated.

Usage

General

The XML Validator Maven Plugin is available from Maven Central. To use the plugin within a Maven POM-based project, simply include a new entry to the following artifact to the <build> section in the appropriate pom.xml:

<build>
  <plugins>
    <plugin>
      <groupId>org.jadice.tools</groupId>
      <artifactId>xml-validator-maven-plugin</artifactId>
      <version>1.0.0</version>
     <!-- Configuration see below -->
    </plugin>
  </plugins>
</build>

Goal: validate

The only goal this maven plugin supports is validate.

Parameters:

Name Type required? Description
source File yes The XML file to validate
schema File yes The schema file to validate against.
skip boolean no Skips the plugin execution, i.e. no validation will be performed.
User property is: skipXMLValidation

References and Attributions

This plugin is build on the JING module of the Wicket Stuff HTML5 Validator and so the JING Relax NG validator.

About

The XML Validator Maven Plugin allows you to perform an XML validation during an Apache Maven build

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages