maven 循环依赖报错 解决办法

错误信息:Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [xxx,xxx,xxx] are excluded from annotation processing .

找出错误原因:在父工程中引入了子项目的坐标,在子工程中引入了父项目的坐标

手动解决方式:

删除父工程中子项目坐标

<dependency>
   <groupId>com.xx</groupId>
   <artifactId>xx</artifactId>
   <version>0.0.1-SNAPSHOT</version>
</dependency>

idea解决方式,菜单analyze

删除红色项目即可

猜你喜欢

转载自blog.csdn.net/qq_28524127/article/details/81383691