简体   繁体   English

IntelliJ IDEA 中突然出现“包不存在”

[英]Sudden "package doesn't exist" in IntelliJ IDEA

Recently I started to receive the following errors about random packages:最近我开始收到以下关于随机包的错误:

在此处输入图像描述

mvn build is working of course, the problem is only for building within Idea. mvn build 当然可以工作,问题仅在于在 Idea 内构建。

Sometimes I can fix it with reloading maven project, sometimes I can't.有时我可以通过重新加载 maven 项目来修复它,有时我不能。

"Disappeared" package is listed both in pom and in the list of libraries: “消失” package 在pom和库列表中都列出:

在此处输入图像描述

Reopen IntelliJ again.再次重新打开 IntelliJ。 On the top right corner choose Maven- perform clean and install for the module in which you face this error:- "Package does not exist"在右上角选择 Maven- 为您遇到此错误的模块执行清理和安装:- “包不存在”

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

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