-
Notifications
You must be signed in to change notification settings - Fork 40.6k
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
Add support for packaging native libraries in fat jars and unpacking them #6324
Comments
How are you packaging the |
Hi, the lib directory (1.3.6-Release) contains only jar dependencies. Here the <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${springboot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<requiresUnpack>
<dependency>
<groupId>com.almworks.sqlite4java</groupId>
<artifactId>sqlite4java</artifactId>
</dependency>
<dependency>
<groupId>com.almworks.sqlite4java</groupId>
<artifactId>libsqlite4java-linux-amd64</artifactId>
<type>so</type>
</dependency>
</requiresUnpack>
</configuration>
</execution>
</executions>
</plugin> here the zip:
My current workaround is: using the dependency-copy plugin (which copy well the so file), adding a manifest for the main class and the classpath, and having several jars. |
Actually, the so files is never packages. My issue description is wrong. |
The current design is to only package anything that's a zip into
I don't think there's any easy way for you to get this to work at the moment. Even if you used the assembly plugin to package the |
Unfortunately I think extended the use of fat JARs for I'd suggest switching to use the Maven Assembly plugin to create a more traditional |
Hello,
I'm trying to deliver a fatjar. But i'm using com.almworks.sqlite4java which depends on a native package (
libsqlite4java-linux-amd64
).sqlite4java.jar
andsqlite4java.so
must be in the same directory.With the
requiresUnpack
, i'm setting both, but only the jar is extracted in the tmp directory.EDIT: actually, "so" dependency is never packaged in the final jar.
The text was updated successfully, but these errors were encountered: