A Spring Boot application cannot be packaged when multiple classes contain a main method. Here is a sample project that demonstrates the issue: https://github.com/dmfrey/spring-boot-package-error Desired outcome: The main method from a class decorated with `@SpringBootApplication` should be used by default, or when there are any other conflicts.