adding Executable Jars to Spring Maven Project
- Add the spring-boot-maven-plugin to the plugins section of your pom.xml file.
- Set the mainClass property in the configuration section of the spring-boot-maven-plugin to point to the main class of your application.
- Execute the mvn package command to build the executable JAR file.
- The executable JAR file will be created in the target directory of your Maven project.