[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.13.RELEASE:repackage (default) on project Demo: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.2.13.RELEASE:repackage failed: Unable to find a single main class from the following candidates [com.hangxiaofei.common.util.DateTimeUtil, com.hangxiaofei.common.util.MD5Util, com.hangxiaofei.common.util.RandomString] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
解决办法:去掉DateTimeUtil、MD5Util和RandomString里的main方法即可。