I have a case where I need to unpack the library using the:
spring-boot:repackage:requiresUnpack
Otherwise, the other library from the project is not able to work properly. As stated in the link, the selected libraries are unpacked and copied over to the temporary directory. Unpacking the libraries to the temp directory isn't great idea if I would like to keep the application running longer that the temp files expiration time. The files would be removed and application will just stop working properly.
- Is there a way to specify the different target directory?
- Is there a reason why the temp location is good place for the application libraries?
So far, I was able to change the location target location via overwriting the TMP and TEMP environment variables but that sounds like terrible idea in the long run.
Appriciate any help here.