JiBX - Plugin Documentation

maven-jibx-plugin

##### Main Project

- JiBX

##### Overview

- Introduction
- Goals
- Usage

##### Configuration

- Execution Modes

##### Examples

- Basic Binding Compilation
- Advanced Binding Compilation
- Generate Java Sources from Schemas
- Generate Modular Code from Schemas
- Test Case Usage
- XML Document comparison

##### Project Documentation

- Project Information
- Project Reports
  - Plugin Documentation

## Plugin Documentation

Goals available for this plugin:

Goal | Description
--- | ---
jibx:bind | Runs the JiBX binding compiler.
jibx:document-compare | Compares two schemas or roundtrips a schema through a JiBX class and compares the results. If a mapped class is supplied, then the inFile is marshalled into the supplied class and then unmarshalled in the outFile (defaults to temp.xml) and compared with the original xml document. If no class is supplied, then the inFile is compared to the outFile XML files. Note: This mojo only runs in test scope.
jibx:jibx2wsdl | Generates WSDL from java code.
jibx:schema-codegen | Generates Java sources from XSD schemas.
jibx:test-bind | Runs the JiBX binding compiler on the test classes.
jibx:test-jibx2wsdl | Generates WSDL from java code.
jibx:test-schema-codegen | Generates Java test sources from XSD schemas.

### System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven | 2.0
JDK | 1.1
Memory | No minimum requirement.
Disk Space | No minimum requirement.

### Usage

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

    <project>
      ...
      <build>
        <!-- To define the plugin version in your parent POM -->
        <pluginManagement>
          <plugins>
            <plugin>
              <groupId>org.jibx</groupId>
              <artifactId>maven-jibx-plugin</artifactId>
              <version>1.2.2</version>
            </plugin>
            ...
          </plugins>
        </pluginManagement>
        <!-- To use the plugin goals in your POM or parent POM -->
        <plugins>
          <plugin>
            <groupId>org.jibx</groupId>
            <artifactId>maven-jibx-plugin</artifactId>
            <version>1.2.2</version>
          </plugin>
          ...
        </plugins>
      </build>
      ...
    </project>

For more information, see "Guide to Configuring Plug-ins"