I have set maven home directory , User setting file and local repo in Idea.
Then I import a maven project ,it starts to scan mavne projects, looking for available profiles. and I can see the Progress bar. but it takes a long time and back to the first step again.
Is my setting wrong ? how to import a maven project into IDEA? thanks a lot !
If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local . m2 repository to see if it was downloaded correctly.
In the Project tool window, right-click your project and select Add Framework Support. In the dialog that opens, select Maven from the options on the left and click OK. IntelliJ IDEA adds a default POM to the project and generates the standard Maven layout in Project tool window.
I had the same Problem. The solution was to edit the /etc/hosts
file and add at the first line:
127.0.0.1 localhost localhost
See also:
Unable to import Maven project into IntelliJ IDEA
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With