The answer is that you are using the repackage target in your spring-boot-maven-plugin . So what is he doing?
Maven first creates your project and packs your classes and resources into a WAR file (${artifactId}.war) .
Then repacking occurs. For this purpose, all the dependencies mentioned in pom.xml are packaged inside the new WAR (${artifactId}.war) , and the previously generated war is renamed to ${artifactId}.war.original .
user2241537
source share