Ask Your Question
1

What does it mean when 'resolveMainClassName FAILED' appears while trying to run gradle in a project with several SpringBootApplications?

asked 2023-05-17 21:26:28 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-17 21:52:01 +0000

woof gravatar image

The error "resolveMainClassName FAILED" in a Gradle project with multiple SpringBootApplications typically means that Gradle is unable to determine the main class to use for the project.

This error can occur when there are multiple main classes in the project or when the main class is not properly configured in the Gradle build file. To resolve this error, you will need to make sure that the main class is correctly specified in the Gradle build file.

You can also try running the Gradle build with the "--info" or "--debug" flag to get more information about the error and identify the root cause.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-17 21:26:28 +0000

Seen: 8 times

Last updated: May 17 '23