Hello,

I've started using jibx in my web application, which is built using maven.  
I therefore followed the instructions at the site  
(http://jibx.sourceforge.net/maven-jibx-plugin/usage.html). I am observing  
the following weird (at least to me) behavior:

1) When I run "mvn compile", the binding compiler is NOT executed at all.

        Is this normal?

2) When I run "mvn test" or "mvn verify", the binding compiler is executed  
and I can see the generated bindings (JiBX_jibx_bindingCLASSNAME.class) in  
the target\classes folder. However, in the case of "mvn verify", the  
webapp is also packed into a WAR. The modules with bindings are placed in  
WEB-INF/lib and do NOT include the bindings (even those are left in the  
target\classes folder).

        Is this normal? How can I include the JiBX bindings in  
WEB-INF/lib/module.jar

3) When I run "mvn package", the classes created from the JiBX binding  
compiler are DELETED some time after being generated. Therefore, there is  
nothing in the target\classes folder, and also nothing in the  
WEB-INF/lib/module.jar archive within my generated WAR (as in the case of  
"mvn verify", only this time the classes have disappeared altogether).

        Is this normal? How can I include the JiBX bindings in my WAR's  
WEB-INF/lib/module.jar

Expecially in the case of "verify" and "package" I end up with a "broken  
WAR", as deploying it causes (naturally" the "Unable to access binding  
information for class" exception discussed here:

        http://jibx.sourceforge.net/faq.html#nobind

------------------------------------------------------------------------------
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

Reply via email to