JiBX -

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

## Advanced Binding Compilation

### Profile based activation

If you don't want to execute the plugin on every Maven run you can define a profile for it. The following example only executes the plugin if you run Maven with a `-Djibx=true` option.

      <profiles>
        <profile>
          <id>jibx</id>
          <activation>
            <activeByDefault>false</activeByDefault>
            <property>
              <name>jibx</name>
              <value>true</value>
            </property>
          </activation>
          <build>
            <plugins>
              <plugin>
                <groupId>org.jibx</groupId>
                <artifactId>maven-jibx-plugin</artifactId>
                <version>1.2.2</version>
                <executions>
                  <execution>
                    <goals>
                      <goal>bind</goal>
                    </goals>
                  </execution>
                </executions>
              </plugin>
            </plugins>
          </build>
        </profile>
      </profiles>