This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-native.git
The following commit(s) were added to refs/heads/master by this push:
new c435b2e ARTEMIS-2426 Added Bundle-Native code header
c435b2e is described below
commit c435b2e30e40e6226fcc7e6db122467df29d2792
Author: Rico Neubauer <[email protected]>
AuthorDate: Fri Jul 12 16:58:13 2019 +0200
ARTEMIS-2426 Added Bundle-Native code header
Allows loading the libraries from bundle without need of being present
in native library path.
---
pom.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pom.xml b/pom.xml
index 02ff3e3..d236da3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -350,6 +350,12 @@
<artifactId>maven-bundle-plugin</artifactId>
<version>3.0.0</version>
<extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <!-- Adding Bundle-NativeCode to allow loading library
from bundle. The asterisk at the end is important, so bundle resolves also
without a matching library, e.g. on Windows. -->
+
<Bundle-NativeCode>lib/linux-i686/libartemis-native-32.so; osname=Linux;
processor=x86, lib/linux-x86_64/libartemis-native-64.so; osname=Linux;
processor=x86-64, *</Bundle-NativeCode>
+ </instructions>
+ </configuration>
</plugin>
<plugin>