Maven编译时提示“程序包不存在”

背景介绍: maven模块 ivan-top ivan-common ivan-common-core ivan-framework ivan-framew

背景介绍:

maven模块

ivan-top

    ivan-common

        ivan-common-core

    ivan-framework

        ivan-framework-core(引用 ivan-common-core)

idea不提示报错信息,但在编译ivan-framework-core模块时提示程序包 ivan-common-core中的文件不存在,通过查看ivan-framework-core的Project-Structure显示ivan-common-core正常引用。

解决方法:

idea中通过Project-Structure,将ivan-framework-core引用的ivan-common-core在Dependencies中删除,在重新添加进来即可解决