On Sep 10, 2007, at 7:05 AM, Damien Lecan wrote:
Hello,
2007/9/8, Alan D. Cabrera <[EMAIL PROTECTED]>:
I was wondering how other people package in native libraries in with
their bundles. Is there a standard and accepted practice when using
maven?
In our applications, .so and .dll files are artifacts too. So they are
uploaded in our internal Maven repository.
Then :
- use maven-dependency-plugin to copy dependencies to "target" folder
in phase "process-resource"
- add BND Include-Resource instruction in your pom to embed them
inside the bundle
- update the Bundle-NativeCode configuration in your pom file.
You can play with native-maven-plugin
(http://mojo.codehaus.org/maven-native/native-maven-plugin/) or with
NAR packaging plugin (http://java.freehep.org/freehep-nar-plugin) to
build your native components.
This looks perfect. Exactly how I was thinking of organizing things.
I'll take it for a spin. Thanks!
Regards,
Alan