IntellijIDEA not recognizing classes specified in Maven dependencies

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

    The problem was caused for me by selecting the project directory to be Imported when first starting IntelliJ rather than the pom.xml file for the project.

    Closing the problem project and then following the Import process again but choosing the pom.xml resulted in a fully working project in the IDE.

提交回复
热议问题