To answer my own question, I've managed to compile the bindings using the multi-module instructions at:
http://jibx.sourceforge.net/maven-jibx-plugin/modes.html#Restricted%20multi-module%20mode
On Sat, 16 Apr 2011 22:31:07 +0300, Alexandros Karypidis <akary...@yahoo.gr> wrote:
Hello,I've been using JiBX and its maven plugin to create XML bindings my domain model. I mainly use it to perform export/import of data from my application using XML.Recently, I re-factored my application and split the domain model code into two packages: the "core" domain model and a new "extras" domain model that extends the core. As a result, I now have two maven packages: app-domain-core and app-domain-extras.My problem is that my "jibx-binding.xml" now resides in "app-domain-extras", but also references classes that exist in "app-domain-core". As a result, during the maven build I get:[ERROR] Failed to execute goal org.jibx:maven-jibx-plugin:1.2.2:bind (default) on project app-domain-extras:
[ERROR] *** Error during code generation for file 'D:\prj\app-parent\app-domain-extras\src\main\resources\jibx-binding.xml' -
[ERROR] this may be due to an error in your binding or classpath, or to an error in the JiBX code ***: Internal error - unable to change access permissionsBasically, I realize that "app-domain-extras" simply has "app-domain-core.jar" in its classpath. Therefore at that point JiBX probably has a hard time modifying the compiled classes to augment them with the bindings.But is what I want even possible (i.e. to generate bindings using sources from two different maven modules)?
------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users