场景:测试用的junit5:import org.junit.jupiter.api.Test;
问题1:maven install的时候test还是会打包
处理方法:在parent中添加skipTest
问题2:程序包ykt.common.components.entity不存在
处理方法:在被依赖的子项目中添加
<build>
<plugins>
<!-- 这个插件,需要打包的模块工程单独引入 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!-- 打包跳过测试 test包 -->
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>