原文:解決:SpringBoot多模塊項目install到本地maven倉庫時出現Unable to find main class -> [Help 1]

Execution repackage of goal org.springframework.boot:spring boot maven plugin: . . .RELEASE:repackage failed: Unable to find main class gt Help 該錯誤的原因是api模塊的父模塊中包含了這個build插件,所有api模塊也繼承了這個插件,由於這個插件是針對 ...

2020-03-03 21:41 0 794 推薦指數:

查看詳情

解決SpringBoot項目repackage failed: Unable to find main class Maven打包問題

最近在開發中,遇到這樣一個問題,一個通用的工具類項目,在進行打包出現repackage failed: Unable to find main class提示找不到主類問題,我就想,我這個項目是一個通用的工具類,不是一個SpringBoot Web工程,我又不需要Main方法的程序啟動入口 ...

Wed May 08 20:53:00 CST 2019 0 1250
maven打包出現unable to find main class問題

搜了好久,有人提到需要spring-boot-maven-plugin這個插件。 添加以后,有的可以了,有的不行。 最后發現是插件必須配置<skip>true</skip>這個節點。 完整來說,就是在pom文件(或者父pom中),有這樣一個配置: ...

Wed Aug 05 02:00:00 CST 2020 0 1286
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM