You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jon Brisbin <jo...@jbrisbin.com> on 2007/12/31 19:50:45 UTC

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Native JNI libs and Maven dependencies

Posted by Tonté <et...@yahoo.com>.
Did you ever figure this out.  I am using a macbook pro, too and want to test
drive Berkeley DB XML; but I don't want to install the complete software.  I
would rather start up Berkeley DB XML in memory right before  maven's test
phase.

Any help and advance would be greatful.

Thank you.

--
View this message in context: http://maven.40175.n5.nabble.com/Native-JNI-libs-and-Maven-dependencies-tp98982p4521666.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Native JNI libs and Maven dependencies

Posted by Dave Hoffer <DH...@xrite.com>.
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:jon@jbrisbin.com] 
Sent: Monday, December 31, 2007 1:51 PM
To: users@maven.apache.org
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org