简体   繁体   English

即使项目构建良好,Intellij 也会显示依赖项错误

[英]Intellij is showing errors for dependencies even when project is building fine

I am fairly new to intellij and I am having a hard time understanding on how to set up the project structure of my project.我对 intellij 还很陌生,我很难理解如何设置我的项目的项目结构。

I have a multi-module project when a root pom and a few child poms.当一个根 pom 和几个子 pom 时,我有一个多模块项目。 BUt somehow intellij is recognising some of the dependencies and not recognizing others.但不知何故,intellij 正在识别一些依赖关系,而不是识别其他依赖关系。 follow image:跟随图片: 在此处输入图像描述

I tried to correct my project structure but without any success.我试图纠正我的项目结构,但没有任何成功。 Following is the present look of my project structure.以下是我的项目结构的当前外观。

在此处输入图像描述

Library settings:库设置:

在此处输入图像描述

I found the issue after a lot of trouble.经过很多麻烦,我发现了这个问题。 The issue was that the poms of the sub projects were somehow marked as ignored.问题是子项目的 pom 以某种方式被标记为忽略。

在此处输入图像描述

As soon as removed them from ignored the issue was resolved一旦将它们从忽略中删除,问题就解决了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM