Description
I am trying to include some native libraries which are in a maven repository using:
lib/=${repo;org.weasis.thirdparty.org.opencv:libopencv_java:so:linux-x86-64;4.4.0.-dcm};lib:=true,\
lib/=${repo;org.weasis.thirdparty.org.opencv:libopencv_java:so:linux-x86;4.4.0.-dcm};lib:=true,\
lib/=${repo;org.weasis.thirdparty.org.opencv:libopencv_java:jnilib:macosx-x86-64;4.4.0.-dcm};lib:=true,\
lib/=${repo;org.weasis.thirdparty.org.opencv:opencv_java:dll:windows-x86-64;4.4.0.-dcm};lib:=true,\
lib/=${repo;org.weasis.thirdparty.org.opencv:opencv_java:dll:windows-x86;4.4.0.-dcm};lib:=true,\
First of all the 4.4.0.-dcm
format really threw me. It is bizarre having to put .
before the -
. I couldn't find the documentation for this. I did eventually find the regex in:
After working around that gotcha, these all work fine except for the macOS one. It will fail because a file that ends in lib
is assumed to be some kind of library:
bnd/biz.aQute.bndlib/src/aQute/bnd/build/Project.java
Lines 1475 to 1479 in d875537
When then blows up because of course a dynlib is a dynamically linked library, not a text file so this doesn't work:
bnd/biz.aQute.bndlib/src/aQute/bnd/build/Container.java
Lines 244 to 261 in d875537