Repackage! Spring Boot exit strategy to Jigsaw

With new JDK, when you compile a spring-boot application you get a big jar which cannot be included as utility jar anymore.

The reason are a lot but, simply put, the new packaging system introduced with JDK9 require a strong separation.

To solve this problem you can “repackage” your jar in two forms: the standard one and the “exec-utable” one. Spring Boot provide a nice maven plugin to do it in thousands of different ways:

https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/maven-plugin/examples/repackage-classifier.html

Good luck!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.