错误描述: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:repackage (repackage) on project shop: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:repackage failed:Unable to find main class
今天在安装父工程时,出现了上述错误,经过反复尝试和查阅其它优秀博主的文章发现,如果我们在pom.xml文件中加入了如下代码,那么maven会先加载springboot启动类,但是有时候我们并不需要springboot启动类,比如父模块和我们实际开发中的common模块,这时候我们可以将其注释掉再安装就不会发生问题了