After, I have imported a project in Intellij IDEA, It couldn't resolve any dependance. because in Settings -> Build Tools -> Maven -> Repositories in the Indexed Maven Repositories, it has only the local repo. So, How can I add the Maven Central Repository?
Asked
Active
Viewed 101 times
0
-
Have you got the right maven settings? Settings->Build,Execution,Deployment->Build Tools->Maven Especially maven home, user settings file and local repo – mish Nov 18 '14 at 13:44
-
they are on default settings – Mohamed F Nov 20 '14 at 08:27
-
well, the default settings did not work for me, try to set the directories manually (tick the override checkbox) – mish Nov 20 '14 at 08:43
1 Answers
0
That must be because you don't have maven correctly configured.
Verify if you have the correct configuration in your
/.m2/settings.xml
For more info see

liponcio
- 264
- 1
- 9
-
-
In the maven settings (in idea) did he find the maven home directory, user settings and local repository correctly? Can you execute any maven command in the command line or terminal? – liponcio Nov 20 '14 at 18:15