IntellijIDEA not recognizing classes specified in Maven dependencies

后端 未结 24 1872
醉梦人生
醉梦人生 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条回答
  •  梦如初夏
    2021-01-30 13:21

    Cache is causing problems! Make sure to do the following:

    In your terminal, go to project/module:

    mvn clean install
    

    In your IntelliJ:

    1. File > Invalidate Caches > Invalidate

    2. Right click on project/module > Maven > Reimport

提交回复
热议问题