Skip to content

Spring Boot Packaging Error when multiple main methods exist #6496

@dmfrey

Description

@dmfrey

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions