栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

spring-boot-maven-plugin:2.0.8.RELEASE:repackage failed: Unable to find main class

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

spring-boot-maven-plugin:2.0.8.RELEASE:repackage failed: Unable to find main class

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.8.RELEASE:repackage (repackage) on project milkCoffer: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.0.8.RELEASE:repackage failed: Unable to find main class

解决方案:
在pom.xml的标签中加入
如下:

p r o j e c t . a r t i f a c t I d < / f i n a l N a m e > < p l u g i n M a n a g e m e n t > < p l u g i n s > < p l u g i n > < g r o u p I d > o r g . a p a c h e . m a v e n . p l u g i n s < / g r o u p I d > < a r t i f a c t I d > m a v e n − c o m p i l e r − p l u g i n < / a r t i f a c t I d > < c o n f i g u r a t i o n > < s o u r c e > {project.artifactId} org.apache.maven.plugins maven-compiler-plugin project.artifactIdorg.apache.maven.pluginsmaven−compiler−plugin{java.version}
${java.version}



org.springframework.boot
spring-boot-maven-plugin
2.0.8.RELEASE

true
true




转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/891695.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号