There are a couple of maven extensions out there that allow maven to support native code. The one I am most familiar with is the Freehep NAR plugin. Its basic idea is to jar up all dependent native code in nar files. Maven can then treat these much like it does jars and handle all the transitive dependencies, etc.
http://java.freehep.org/freehep-nar-plugin/intro.html Now I don't know if this will work for you; its main purpose is to compile then nar the binaries. However since you aren't compiling you might just be able to package them into nars. It does unpack the nars, at the right time, so they can be loaded by your application. Also, I wouldn't say it is quite complete yet. For example we couldn't use it because it lacked support for dealing with universal binaries on OSX, etc. It might be worth a look for your case. -Dave -----Original Message----- From: Jon Brisbin [mailto:[EMAIL PROTECTED] Sent: Monday, December 31, 2007 1:51 PM To: [email protected] Subject: Native JNI libs and Maven dependencies I've been using eXist as the XML:DB backend for our portal application, but I'm moving to Oracle Berkley DBXML. There is no Maven POM for DBXML, obviously, but I'd like to include that as a dependency for my application rather than installing it in the JVM's ext/ and i386/ directories. There is some scant documentation around on including JNI libraries with Maven dependencies, but I couldn't really make heads or tails of it, as it's not an actual part of the application, just a dependency. How would I go about creating a Maven dependency for Berkley DBXML that includes the JAR files and the shared libraries (I know I'll have to include all the architectures I deploy on, but right now I'm just concentrating on getting this working on my MacBook Pro). I want it portable, so I don't want to use a system dependency, but I guess I will if there's no way around it. Any pointers to docs somewhere of folks who have already done this? Thanks! Jon Brisbin http://jbrisbin.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
