Skip to content

chenkunyun/spring-boot-assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Overview

This is example project to demonstrate how to use maven-assembly-plugin to package a SpringBoot application into a non-fat jar.

The resulting package structure will be:

.
β”œβ”€β”€ bin
β”‚Β Β  β”œβ”€β”€ start.sh
β”‚Β Β  └── stop.sh
β”œβ”€β”€ classes
β”‚Β Β  β”œβ”€β”€ application.yml
β”‚Β Β  β”œβ”€β”€ com
β”‚Β Β  β”‚Β Β  └── kchen
β”‚Β Β  β”‚Β Β      └── example
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ ExampleApplication.class
β”‚Β Β  β”‚Β Β          └── controller
β”‚Β Β  β”‚Β Β              └── HomeController.class
β”‚Β Β  └── logback-spring.xml
β”œβ”€β”€ lib
β”‚Β Β  β”œβ”€β”€ classmate-1.3.3.jar
β”‚Β Β  β”œβ”€β”€ hibernate-validator-5.3.5.Final.jar
β”‚Β Β  β”œβ”€β”€ jackson-annotations-2.8.0.jar
β”‚Β Β  β”œβ”€β”€ jackson-core-2.8.8.jar
β”‚Β Β  β”œβ”€β”€ jackson-databind-2.8.8.jar
β”‚Β Β  β”œβ”€β”€ jboss-logging-3.3.1.Final.jar
β”‚Β Β  β”œβ”€β”€ jcl-over-slf4j-1.7.25.jar
β”‚Β Β  β”œβ”€β”€ jul-to-slf4j-1.7.25.jar
β”‚Β Β  β”œβ”€β”€ log4j-over-slf4j-1.7.25.jar
β”‚Β Β  β”œβ”€β”€ logback-classic-1.1.11.jar
β”‚Β Β  β”œβ”€β”€ logback-core-1.1.11.jar
β”‚Β Β  β”œβ”€β”€ slf4j-api-1.7.25.jar
β”‚Β Β  β”œβ”€β”€ snakeyaml-1.17.jar
β”‚Β Β  β”œβ”€β”€ spring-aop-4.3.9.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-beans-4.3.9.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-boot-1.5.4.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-boot-autoconfigure-1.5.4.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-boot-starter-1.5.4.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-boot-starter-logging-1.5.4.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-boot-starter-tomcat-1.5.4.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-boot-starter-web-1.5.4.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-context-4.3.9.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-core-4.3.9.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-expression-4.3.9.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-web-4.3.9.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ spring-webmvc-4.3.9.RELEASE.jar
β”‚Β Β  β”œβ”€β”€ tomcat-embed-core-8.5.15.jar
β”‚Β Β  β”œβ”€β”€ tomcat-embed-el-8.5.15.jar
β”‚Β Β  β”œβ”€β”€ tomcat-embed-websocket-8.5.15.jar
β”‚Β Β  └── validation-api-1.1.0.Final.jar
└── log
    └── example.log

THANKS

The start.sh and stop.sh scripts borrowed a lot of inspiration from Zhang Kaitao's blog:

Many thanks to Kaitao!

About

Use maven-assembly-plugin to package a spring boot project into a non-fat jar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors