I've managed to add platform dependencies to war
and generated by maven-nar-plugin
jni artifact into WEB-INF/lib/
.
But the problem is: added artifact has .nar
extension while WebappClassLoaderBase
adds only .jar
s to its internal class repositories, so my jni bridge is not loaded and class is inaccessible leading to ClassNotFoundException
.
What are my options here? I assume it's possible to
- somehow change artifact extension on
spring-boot:repackage
? - add this custom artifact to classloader repositories?
Which would be better and how would I implement it?