-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jib infers wrong main class if multiple main classes exist #2456
Comments
|
I don't know how exactly Spring Boot determines a main class, but having a single
And there seem many other ways Spring Boot determines the main class. For now, I think we should fix this bug and show an error that multiple main classes are detected. |
@reechar-goog @saturnism Jib 2.3.0 is released with the fix. |
Neat. Thank you! |
We got a report that Jib uses the string
${start-class)
when there are multiplepublic static void main()
defined. I was able to reproduce this on a Spring Boot project. I think the string${start-class)
comes from Spring Boot.We are supposed to fail and show an error if there are multiple main classes, but seems like this isn't working.
A workaround is to explicitly set the main class with
<container><mainClass>
.UPDATE: found a related issue #170
@reechar-goog @saturnism
The text was updated successfully, but these errors were encountered: