module项目互相引用

发现module引用失灵时不灵,查了一下原因,每次clean target之后,互相引用就没用了。

步骤是这样的:

1.A要引用B,A在dependencies中添加B项目;

2.B项目mvn install生成jar包(这里要注意把ignoreTestFailure打开)

3.rebuildA项目,OK了。

mvn clean install -Dmaven.test.skip=true

  

posted @ 2020-11-16 00:33  头鹰在学习  阅读(618)  评论(0编辑  收藏  举报