IntelliJ IDEA Maven 依赖问题

maven 多项目之间依赖,install 没有问题,只是在发布到tomcat 启动的时候编译不过。java

报相似以下的错误:tomcat

Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [A,B] are excluded from annotation processingmaven

解决方法其实也很简答:ide

To solve these kind of problems need to use Analyze Module dependencies in InteliJ-idea.idea

File Menu > Analyze > Module Dependenciesci

This shows the list of all projects which have cyclic dependencies and should be resolved first.io

This feature helps you to find the problem.编译

意思是打开 File Menu > Analyze > Module Dependencies ,出问题的项目会显示为红色,module

而后红色的项目之间存在循环依赖问题,查看一下pom文件并去掉重复依赖就行了。cli

相关文章
相关标签/搜索