IntellijIDEA not recognizing classes specified in Maven dependencies

后端 未结 24 1861
醉梦人生
醉梦人生 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:20

    A simple reimport and/or update of the repositories via Intellij did not do the trick for me.

    Instead I had to delete the complete ~/.m2/repository directory and let maven sort everything out by itself. Afterwards Maven -> Reimport finished it off.

提交回复
热议问题