Generate java code for jibx configuration XML files

256 views
Skip to first unread message

Ritika

unread,
Jan 11, 2012, 9:01:18 AM1/11/12
to Robotium Developers
I am trying to create the java code for the jibx binding files through
maven.

I have defined the plugin "jibx-maven-plugin" in the pom.xml and goals
as schema-codegen and bind. I have xml binding files under src/main/
jibx folder and default binding file binding.xsd placed in same
folder.

And when i rum "mvn package" command i get the message "Not running
JiBX binding compiler (single-module mode) - no binding files". And no
java code files are generated for xml binding files.
But for binding.xsd corresponding java code get generated and placed
at desired location.

<plugin>
<groupId>org.jibx</groupId>
<artifactId>jibx-maven-plugin</artifactId>
<version>1.2.3</version>
<executions>
<execution>
<id>generate-java-code-from-schema</id>
<goals>
<goal>schema-codegen</goal>
</goals>
<configuration>
<schemaLocation>src/main/jibx</
schemaLocation>
<includeSchemas>
<include>binding.xsd</
includeSchema>
</includeSchemas>
</configuration>
</execution>

<execution>
<id>compile-binding</id>
<goals>
<goal>bind</goal>
</goals>
<configuration>
<schemaBindingDirectory>src/main/java</
schemaBindingDirectory>
<includeSchemaBindings>
<includeSchemaBinding>*.xml</
includeSchemaBinding>
</includeSchemaBindings>
</configuration>
</execution>
</executions>

</plugin>
Reply all
Reply to author
Forward
0 new messages