junit单元测试多个module依赖问题

当前module模块可能只依赖了另一个module模块的接口层,实现层没有依赖

<dependency>
    <groupId>com.aaaaai.shop</groupId>
    <artifactId>abc-api</artifactId>
</dependency>

可以增加业务实现层在test下的依赖

<dependency>
    <groupId>com.aaaaai.shop</groupId>
    <artifactId>abc-service</artifactId>
    <scope>test</scope>
</dependency>
发布了233 篇原创文章 · 获赞 7 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/china_squirrel/article/details/104791635