Spring Boot JAR에 dependency를 같이 패키징하기 위해서 다음과 같이 추가합니다.
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>unpack-dependencies</id> <phase>compile</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/classes</outputDirectory> <excludes>META-INF/**/*</excludes> </configuration> </execution> </executions> </plugin>