java - Alternatives to distribute spring-boot application using maven (other than spring-boot:repackage) -


as far know, spring-boot-maven-plugin has provided way distribute entire application in fat executable jar file: spring-boot-maven-plugin

however, don't want fat executable jar encapsulates modules , dependencies , configuration files , such, maybe zip/tar file main module in jar , launch scripts different platforms alongside jar, , dependencies under lib folder , configurations file reside in conf folder:

      application.zip         mainapp.jar         run.sh         run.bat         lib             a.jar             b.jar             c.jar         conf             application.properties             logback.xml  

how make distribution in structure?

use maven appassembler plugin - program example seems close you're looking for. output like:

. `-- target     `-- appassembler         |-- bin         |   |-- basic-test         |   `-- basic-test.bat         `-- repo             `-- org                 `-- codehaus                     `-- mojo                         `-- appassembler-maven-plugin                             `--                                 `-- platforms-test                                     |-- 1.0-snapshot                                     |   |-- maven-metadata-appassembler.xml                                     |   `-- platforms-test-1.0-snapshot.jar                                     `-- maven-metadata-appassembler.xml 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -