IntellijIDEA not recognizing classes specified in Maven dependencies

后端 未结 24 2116
醉梦人生
醉梦人生 2021-01-30 12:57

I have a project in IntellijIDEA which was created with Maven. I then specified a set of dependencies and external repositories in the Pom.xml file.

The project builds

24条回答
  •  Happy的楠姐
    2021-01-30 13:19

    After installing IntelliJ IDEA on a new computer I found myself with the same issue.

    I had to update the remote maven repository. (Settings > Maven > Repositories)

    enter image description here

    Both local and remote repos needed to be updated. The remote one wasn't updated ever before this. After a restart everything worked fine. You might have to reimport your project.

提交回复
热议问题