If you have come across this error when trying to build and deploy your Spring Boot Maven application then this post will help you!
Error: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.4:repackage (repackage)
How to fix the Repackage Execute Goal Error
You need to make sure you have the
mainClass explicitly defined under your
plugin as follows: