今天折腾半天,有个项目就是打包里面没有依赖的jar包
后来在
<build>
里面增加下面这段
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
问题解决了