Yes it's normal.
If you include scala-library.jar as jar in your jar then you should include a custom code to load into your main(...).
java -jar xxx.jar
ignore jar inside jar
- you have to create your own assembly description file with
<unpack>false</unpack>
on dependencySet (under binaries or root, I don't remember) + change main to load the jar from Resource (yourmain()
should note depends of scala-library) - you can use alternative to assembly, dedicated to this job (it includes code to launch jar), like (maven plugin for those tools should exists):
But my recommendation, it's to use Proguard : it will create a single jar like you current code, but it will shrink useless code (lot of part of scala-library). Try it manually (without maven-plugin first) via the gui to find your right configuraion, it can take time (if you use reflection, ...).