Marvin's Blog

Hi, My friend. Welcome to my space

0%

Maven 循环依赖

错误信息如下(低级错误):

Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [erp-commons-entity,erp-commons-helper] are excluded from annotation processing

POM配置如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-------------------POM A-------------------->
<artifactId>erp-commons-entity</artifactId>
<version>1.0.1</version>
<packaging>jar</packaging>
<name>entity</name>
<dependencies>
<dependency>
<groupId>top.orientexpress.erp</groupId>
<artifactId>erp-commons-helper</artifactId>
</dependency>
...
</dependencies>
<!-------------------POM B-------------------->
<artifactId>erp-commons-helper</artifactId>
<version>1.0.1</version>
<packaging>jar</packaging>
<name>helper</name>
<dependencies>
<dependency>
<groupId>top.orientexpress.erp</groupId>
<artifactId>erp-commons-entity</artifactId>
</dependency>
...
</dependencies>