官网
https://maven.apache.org/plugins/maven-shade-plugin/
maven-shade-plugin简介
maven-shade-plugin定义了一个Maven Goal: Shade,在package这个阶段执行
作用:官网就下面这一句话
This plugin provides the capability to package the artifact in an uber-jar, including its dependencies and to shade - i.e. rename - the packages of some of the dependencies.
简单来说,uber-jar就是一个包含了所有东西的jar包。参考下面这个SO:https://stackoverflow.com/questions/13620281/what-is-the-maven-shade-plugin-used-for-and-why-would-you-want-to-relocate-java
注意:应避免使用uber-jar作为Maven依赖项,因为它破坏了Maven的依赖解析功能。通常,我们只为实际部署或手动分发的最终工件创建一个超级jar,而不是用于放入Maven存储库。