Why does spring loading create a jar or war file with a .original extension?

Why, after creating the spring boot application, does it generate two jar or war files with the extension .original ? I am using the Maven spring boot plugin. For instance:

  1. application.war
  2. application.war.original
+19
source share
2 answers

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 .

+14
source

I assume that you are using the maven spring plugin. This behavior is documented here : https://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-maven-plugin.html

+3
source

Source: https://habr.com/ru/post/1267201/


All Articles