springboot问题:Unable to find main class Could not find artifact com. leyou. service: ly- i tem-in - Go语言中文社区

springboot问题:Unable to find main class Could not find artifact com. leyou. service: ly- i tem-in


springboot 多个maven模块打包异常:Unable to find main class
原因:在父工程中加入了springboot的maven插件,即:

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

此插件会进行repackage:

util这个模块只是一个普通的maven模块,但是由于父工程引用了springboot的maven插件,所以进行了repackage。
参考资料:https://my.oschina.net/tridays/blog/825245

 

转至:https://blog.csdn.net/jm19920911/article/details/82220207

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/qq_36570464/article/details/100077603
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-06 23:04:53
  • 阅读 ( 1019 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢