假如 A模块 依赖B模块 ,在A进行打包时 报如下错误
image.png
则:在B模块的pom 添加
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>启动类路径</mainClass>
<fork>false</fork>
<includeSystemScope>true</includeSystemScope>
<!--<classifier>exe</classifier>-->
<skip>true</skip>
</configuration>
</plugin>
网友评论