<binding xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\Java\JiBX-1.1.6a\docs\binding.xsd">
<include path="layouts-binding.xml"/>
<include path="dealing-rest-binding.xml" />
<mapping name="test"
class="uk.co.igindex.regression.service.testcase.model.TestCaseImpl">
<value name="name" field="name" style="attribute" />
<structure field="declare"
type="uk.co.igindex.regression.service.testcase.model.DeclareImpl" />
<collection field="actionList" type="java.util.ArrayList">
<structure
type="uk.co.igindex.regression.service.testcase.model.ActionImpl" />
</collection>
</mapping>
And the way to include it to be able to use the original file by application is:
<plugin>
<groupId>org.jibx</groupId>
<artifactId>maven-jibx-plugin</artifactId>
<version>1.1.6a</version>
<executions>
<execution>
<goals>
<goal>bind</goal>
</goals>
</execution>
</executions>
<configuration>
<directory>
src/main/resources/oxm-binding
</directory>
<includes>
<includes>regression-testcase-binding.xml</includes>
</includes>
<verbose>true</verbose>
</configuration>