IntelliJ IDEA为什么在调试时报错说包不存在,而实际上包是存在的?

huangapple go评论62阅读模式
英文:

why does IntelliJ IDEA debug complain a package does not exist while it's there

问题

我是新手使用Java和IntelliJ IDEA。

尝试理解一个Java Maven包(https://github.com/prestosql/presto/tree/337,发布版本337)。在我将项目导入IntelliJ IDEA后,我尝试调试一个test

但然后它抱怨一个包不存在,尽管它在那里被突出显示,如何让IDEA找到这个包,请?

英文:

I'm new to Java and IntelliJ IDEA.

Trying to understand a Java Maven package (https://github.com/prestosql/presto/tree/337, release version 337). After I import the project into IntelliJ IDEA, I tried to debug a test :

IntelliJ IDEA为什么在调试时报错说包不存在,而实际上包是存在的?

But then it complains a package doesn't exist while it's there as highlighted, how to make IDEA find the package, please?

IntelliJ IDEA为什么在调试时报错说包不存在,而实际上包是存在的?

答案1

得分: 1

尝试执行以下命令

mvn clean install

以清理项目并获取所有项目依赖项。

英文:

try to execute this command

> mvn clean install

to clean your project, and get all your project dependencies

huangapple
  • 本文由 发表于 2020年8月11日 00:53:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/63344581.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定