Maven Trang Plugin

This simple plugin invokes Trang on a set of input files to produce an output file. For more information about Trang, see http://www.thaiopensource.com/relaxng/trang.html.

License

License

Free to use as is
Categories

Categories

Maven Build Tools Net
GroupId

GroupId

net.sigmalab.trang
ArtifactId

ArtifactId

trang-maven-plugin
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven Trang Plugin
This simple plugin invokes Trang on a set of input files to produce an output file. For more information about Trang, see http://www.thaiopensource.com/relaxng/trang.html.
Source Code Management

Source Code Management

https://github.com/schrepfler/trang-maven-plugin

Download trang-maven-plugin

How to add to project

<plugin>
    <groupId>net.sigmalab.trang</groupId>
    <artifactId>trang-maven-plugin</artifactId>
    <version>1.2</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
com.thaiopensource : trang jar 20091111

Project Modules

There are no modules declared in this project.

trang-maven-plugin

Build Status

This simple plugin invokes the Trang library on a set of xml schema input files to and produces a translated schema as output. For more information about Trang, see http://www.thaiopensource.com/relaxng/trang.html.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
        <plugin>
          <groupId>net.sigmalab.trang</groupId>
          <artifactId>trang-maven-plugin</artifactId>
          <version>1.2</version>
        </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

Trang goal

This example will convert src/main/rnc/schema.rnc to XSD format and place the output in target/trang/schema.xsd.

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>net.sigmalab.trang</groupId>
        <artifactId>trang-maven-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <id>trang-convert</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>trang</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <inputFiles>
            <inputFile>src/main/rnc/schema.rnc</inputFile>
          </inputFiles>
          <outputFileName>schema.xsd</outputFileName>
        </configuration>
      </plugin>
    </plugins>
  </build>
   ...
</project>

Versions

Version
1.2