Jibx Compile Exception



I have a maven project separeted in 2 main modules, API and EJB . In my EJB project I'm using the JIBX-Maven-plugin as follows



<plugin>
<groupId>org.jibx</groupId>
<artifactId>jibx-maven-plugin</artifactId>
<version>1.2.5</version>
<configuration>
<schemaBindingDirectory>src/main/resources/binding</schemaBindingDirectory>
<includeSchemaBindings>
<includeSchemaBindings>*_bind.xml</includeSchemaBindings>
</includeSchemaBindings>
<verbose>true</verbose>
</configuration>
<executions>
<execution>
<goals>
<goal>bind</goal>
</goals>
</execution>
</executions>
</plugin>


In my *bind.xml file I'm trying to map an object that is located in my API module :



[...]
<mapping name="XPTO" class="PACKAGE.API.OBJECT">
[...]


The problem I am always getting this error



org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jibx:jibx-maven-plugin:1.2.5:bind (default) on project XPTO-ejb: Should never be called with null root


I am doing something terribly wrong here ?


Any help will be great.


Thank you, Pedro Ferreira


No comments:

Post a Comment