Intellij idea cannot resolve anything in maven

后端 未结 28 2215
一个人的身影
一个人的身影 2020-11-29 16:15

I\'m new to Intellij Idea, i just import a project with pom.xml, but the ide didn\'t resolve anything in maven dependencies.

Anything defined in p

28条回答
  •  孤独总比滥情好
    2020-11-29 16:37

    I have tried several options, but this one finally solved my problem. I re-imported the project by following these steps in IntelliJ:

    1. File -> New -> Project From Existing Repositories
    2. Choose your project from 'Select File or Directory to Import'

    3. In the next screen choose 'Import Project From external model', and choose 'Maven.

    4. In the next step, click the checkbox 'Import Maven projects automatically', (that solved my problem)
    5. Finish up by choosing profiles if necessary

    For me re-importing maven projects did not solve the issue for an existing projects.

提交回复
热议问题