Hey Kenneth, there is a JiBX Maven plugin you could try. In this example POM snippet below from one of my projects, the binding files are kept in src/main/resources. You could put your insuranceMapping.xml in the includes directly or use a wildcard:
<plugin> <groupId>org.jibx</groupId> <artifactId>maven-jibx-plugin</artifactId> <version>1.2.1</version> <configuration> <directory>src/main/resources</directory> <includes> <includes>*-binding.xml</includes> </includes> <verbose>true</verbose> </configuration> <executions> <execution> <phase>process-classes</phase> <goals> <goal>bind</goal> </goals> </execution> </executions> </plugin> JiBX dependency: <dependency> <groupId>org.jibx</groupId> <artifactId>jibx-bind</artifactId> <version>1.2.1</version> </dependency> Hope this helps ________________________________ From: Kenneth Henriksen <phecda...@gmail.com> To: users@maven.apache.org Sent: Wed, December 16, 2009 2:33:24 PM Subject: How to deploy JiBX Maven project from Ant specifications Hi, I'm building a Maven project by looking at this project build by Ant: http://soa.dzone.com/articles/pattern-based-development-with-0?page=0,3 Everything works fine, except that I can't figure out where to put the "InsuranceMapping.xml" file used by JiBX. It is not referenced anywhere except in the original Ant build.xml script seen hereunder ("." infront of "param" is to make sure the whole post is shown): <target name="deploy-insurance" description="Deploy the insurance example"> <echo message="Creating insurance service units" /> <antcall target="gn:create-serviceunit"> <.param name="servicemix-conf" value="servicemix/insurance-jms-su" /> <.param name="service-dest-file" value="insurance-jms-su.zip" /> <.param name="jibx-mapping" value="jibx/InsuranceMapping.xml" /> <.param name="include-classes" value="esb/dzone/servicemix/model/*" /> <.param name="include-resource-dir" value="servicemix/insurance-jms-su/resources" /> </antcall> <antcall target="gn:create-serviceunit"> <.param name="servicemix-conf" value="servicemix/insurance-file-su" /> <.param name="service-dest-file" value="insurance-file-su.zip" /> <.param name="include-classes" value="esb/dzone/servicemix/model/*" /> <.param name="jibx-mapping" value="jibx/InsuranceMapping.xml" /> <.param name="include-resource-dir" value="servicemix/insurance-file-su/resources" /> </antcall> How du I do the same thing in my Maven project. Shoud the "InsuranceMapping.xml" be referenced from some POM file? Kind regards, Kenneth H