Which version of SMX do you use ?
From a general point of view, using the JBI packaging (SU/SA) :
- if you add your jar in the SUs POM dependencies and make a mvn
install, the SU zip will include your jar. SMX creates a classloader for
your SU including all jar in it. From my point of view, it's the most
elegant way.
- SMX3 defines a classloader hierarchy explained
http://docs.huihoo.com/apache/servicemix/classloaders.html.
You can extend your SU classloader using the <classspath/> tag in the
xbean.xml.
Regards
JB
Stuart Roe wrote:
Hi all,
I have a newbie question (which I think is really a maven question).
I'm using JiBX to create the marshalling code between XML and class
instances. These are defined in their own JAR file that needs to be included
into the build of my SU. I've tried adjusting pom to add the message jar to
the compiler's CP, which results in a successful build, but causes a class
not found exception at deployment. I guess that I could add the messages jar
to some form of lib folder in the Servicemix installation, but this doesn't
feel like the correct solution. I would expect the messages jar to be rolled
in with the SU/SA installation.
So my question is what is the easiest/best/correct way to include the
messages jar into the build of the SU and SA for deployment? I guess that I
need to adjust pom.xml, but how? Do I need to create a maven project for the
messages jar (currently built via ant)?
BTW, just in case it is important, I'm using SM V3.2.3 on WXP via JRE6 and
the SU/SAs have been created via mvn (as per the instructions on the SM site
tutorial).
Stuart
--
Jean-Baptiste Onofré
---------------------------------
HomePage
http://www.nanthrax.net
---------------------------------
Contacts
[email protected]
[email protected]
---------------------------------
OpenSource
BuildProcess/AutoDeploy
http://buildprocess.sourceforge.net
Apache ServiceMix
http://servicemix.apache.org
-----------------------------------
PGP : 17D4F086