Hello Don,
Thank you for your input!
I guess (1) makes absolute sense.
Thank you for your input!
I guess (1) makes absolute sense.
Regarding (2), you are correct that the generated classes are included in the JAR archive. However, please see my later e-mail which explains why this does not work in the multi-module config.The sequence of events which explains why this happens is here: http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg04655.html
For example: suppose I am building project "prjA" which contains "module1" and "module2". In "module2" the jibx-maven-plugin is configured to generate bindings, which also references classes from "module1".
As it is now, the plug-in generates classes in "module1/target/...". However, "module1" has already been packaged by then so those classes won't make it into the module1.jar archive...
Any ideas how to handle this?
Kind regards,
Alexandros
On Fri, 13 May 2011 22:56:05 +0300, Don Corley <d...@donandann.com> wrote:
Alexandros,Wow, that's a lot of questions. Let me see if I can help you.1. If you run:mvn compileThe JiBX binding compiler will not run. This is the correct behavior. Remember JiBX adds byte codes AFTER your code is compiled (in the 'process-classes' phase). Usemvn packageand you should be okay.2. If you use standard maven directories, your generated classes should automatically be included in your jar files. If you are having problems, try taking a look at some of our examples, here:3. Yes, there was a bug in multi-module generation:It has been fixed.This fixed code will be included in the 1.2.4 release. To use it now, just check it out of our svn repo and build it:cd jibx-maven-pluginmvn installRemember to change your plugin name to jibx-maven-plugin (from maven-jibx-plugin) and update the revision number to 1.2.4-SNAPSHOT. jibx-maven-plugin is the new plugin name.If you can't get this to work, email me back and I'll release a bugfix (1.2.3.1) version.Hope this helps!Don
------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users