IntellijIDEA not recognizing classes specified in Maven dependencies

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

    If you have any dependencies in pom.xml specific to your organisation than you need to update path of setting.xml for your project which is by default set to your user directory in Ubuntu : /home/user/.m2/settings.xml -> (change it to your apache-maven conf path)

    Go to -> intellij settings -> build,Execution, Deployement -> Build Tools -> Maven -> User settings file

提交回复
热议问题