Me and my friend are working on a Java maven project, the setup is identical as we get the project from git. On my setup Maven imports all dependencies correctly but for my friend it won't find any dependencies.
Things we have tried:
Uninstalling and reinstalling Intellij
Invalidate caches/Restart
Deleting the maven folder in the .Intellij folder and deleting the *.iml and .idea folder and restarted Intellij
Right click on project, clicked on maven and clicked reimport.
We both have access to the internet so that shouldn't be the problem either. Also, Maven is set to auto-import in Intellij.
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.
I think the problem is not IntelliJ, I think maven can not download the dependencies, so you can try to force the dependencies download with the following command:
mvn clean install -U
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