Created
April 7, 2022 23:00
-
-
Save valter-jnr/8deab61eca69972aef12f1f756391c66 to your computer and use it in GitHub Desktop.
Fix no main manifest attribute, in jar Error in Spring Boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix no main manifest attribute, in jar Error in Spring Boot | |
Add spring-boot-maven-plugin in build section of your pom.xml. If it is not added then add the below lines | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<version>2.1.5.RELEASE</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>repackage</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment