引入循环图

kokeuurv  于 2021-07-09  发布在  Java
关注(0)|答案(1)|浏览(281)

这个问题在这里已经有答案了

如何解决maven中的循环依赖(3个答案)
三年前关门了。
我有两个模块和一个家长在我的应用程序。-父模块-模块a(含A1和A2类)-模块b(含B1和B2类)
我需要在模块b中使用类A1和2,在模块a中使用类B1和2。我知道想要是一个周期性的例外,但我怎么能尝试做我想做的。。。 parent: pom.xml<modules> <module>../moduleA</module> <module>../moduleB</module> </modules>moduleA: pom.xml<dependencies> <dependency> <groupId>com.test</groupId> <artifactId>moduleB</artifactId> </dependency> </dependencies>moduleB: pom.xml ```


com.test
moduleA

谢谢你的帮助
aelbi1ox

aelbi1ox1#

您可以创建包含这两个类的第三个模块,并在两个模块中使用它。

相关问题