Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save valter-jnr/8deab61eca69972aef12f1f756391c66 to your computer and use it in GitHub Desktop.
Save valter-jnr/8deab61eca69972aef12f1f756391c66 to your computer and use it in GitHub Desktop.
Fix no main manifest attribute, in jar Error in Spring Boot
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