mvn clean install报错
[INFO] [INFO] miaosha-parent ..................................... SUCCESS [ 4.438 s] [INFO] miaosha-order ...................................... SUCCESS [ 1.904 s] [INFO] miaosha-order-api .................................. FAILURE [ 9.189 s] [INFO] miaosha-v2 ......................................... SKIPPED [INFO] miaosha-common ..................................... SKIPPED [INFO] miaosha-service .................................... SKIPPED [INFO] miaosha-web ........................................ SKIPPED [INFO] miaosha-v1 ......................................... SKIPPED [INFO] miaosha-admin ...................................... SKIPPED [INFO] miaosha-admin-common ............................... SKIPPED [INFO] miaosha-admin-api .................................. SKIPPED [INFO] miaosha-admin-service .............................. SKIPPED [INFO] miaosha-admin-web .................................. SKIPPED [INFO] miaosha-order-provider ............................. SKIPPED [INFO] miaosha-rpc ........................................ SKIPPED [INFO] dubbo-api .......................................... SKIPPED [INFO] dubbo-consumer ..................................... SKIPPED [INFO] dubbo-provider ..................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17.114 s [INFO] Finished at: 2025-12-03T11:11:38+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.6.1:repackage (default) on project miaosha-order-api: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.6.1:repackage failed: Unable to find main class -> [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. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :miaosha-order-api PS D:\community_new\miaosha>
Source: qiurunze123/miaosha