简体   繁体   中英

Cannot import maven project in IntelliJ

When trying to open a maven project through the pom.xml , IntelliJ shows the windows: Open project , when I click open as project I can see the window: scanning maven projects . I can't get to the window open in current window or new window.

When I try to open a non-maven project, it opens it. When I try to open a maven project as a normal project it doesn't seem to do anything.

I have successfully opened a project as maven project through cloning it from Git, bit it gives me errors that it can't import the maven dependencies.

I can do mvn --version , mvn clean compile etc.

I have tried to open projects without the .idea folder and with the .idea folder. That didn't work.

I have reinstalled IntelliJ already.

EDIT: I am using IntelliJ version: 2018.2.4 Ultimate.

EDIT2: I just noticed that the blue color that usually appears by a pom.xlm is different, see screenshot. other color?

To import a maven based project in intellij Idea follow the following steps:

Open intellij idea, Goto File menu, Click on New, Click on Project from existing sources, Select file or directory to import, Select POM file , Click on OK, Finalize the other steps, wait till the import loading gets completed(Sometime it takes much duration to complete) Your project will get loaded with files and folder on left side.

您的防火墙中是否有例外,以便IntelliJ可以发出http请求?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM