-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing libraries in final package #1028
Comments
Thanks for your bug report. I'm pretty sure it relates to this todo. The issue is that the native dependencies doesn't have However we have a workaround for this issue. Use the So you need to add something like mappings in Universal ++= fromClasspath(
(managedClasspath in Runtime).value,
"lib",
artifact => artifact.`type` == "native" // what ever the type is
) |
Thanks! I will try the work around. But the native packages do have .jar files here. Do I misunderstand the todo? |
Can you please provide the complete example? I tried the following
But I got the error:
Thanks! |
Undefined setting means something is not yet intitialized. Where are you enabling native packer in your example? |
This module is not the main module/entry of the application. I move the workaround code to the main module build.sbt but it doesn't solve the problem. The native libraries are still missing. |
This can be resolved by adding |
Thanks for sharing @haifengl |
Expected behaviour
Our project smile reply on sbt and sbt-native-packager for buidling and packaging. The module netlib depends on the third party library netlib-java. When we use
the build is successful and all depended libraries are packaged into
lib
directory. Note that "all" is a pom only dependency and will include many libraries that we don't need. So we try to include only the libraries that we need as following:run
sbt stage
and check the targetlib
directory, the jar files ofnetlib-native_system-linux-x86_64
,netlib-native_system-win-x86_64
, andnetlib-native_system-osx-x86_64
are missing.Actual behaviour
Missing libraries in
lib
directory.Information
What sbt-native-packager are you using
1.2.1
What sbt version
0.13.16
What is your build system (e.g. Ubuntu, MacOS, Windows, Debian )
MacOS
What package are you building (e.g. docker, rpm, ...)
Universal Package .tgz
What version has your build tool (find out with e.g.
rpm --version
)N/A
What is your target system (e.g. Ubuntu 16.04, CentOS 7)
Universal package (most development on macOS 10.12 Sierra, test on CentOS 7 and Windows 10 too)
The text was updated successfully, but these errors were encountered: