Main methods no longer require public, static, or args under the recent JDK 25 changes, but failing to put public or static causes the spring-boot-maven-plugin to report "repackage failed: Unable to find main class"

This issue affects both 3.5.6 and 4.0.0-M3

Comment From: philwebb

Duplicates #47309