paxie
paxie

Reputation: 197

Cannot pull the project from github using IntelliJ

I'm trying to pull spring boot project from github with Intellij Idea 2018 Ultimate.

I did it this way:

1.Clicked Check out from version control in IntelliJ

2.Copied link from github

3.Finished the pull

enter image description here

enter image description here

enter image description here

The problem is that after the pull from git hub all my dependencies are red (On everything it says "Cannot resolve..." ).

enter image description here

Screen of github project structure: enter image description here

My friend pulled the project the same way like me and he does not have this kind of problem.

Could anyone tell me what may cause this behaviour?

Upvotes: 1

Views: 446

Answers (2)

Benzene
Benzene

Reputation: 1

In the first image, you can check the Import Maven projects automatically, the project is automatically initialized when the pull is complete

Upvotes: 0

Wilson Shum
Wilson Shum

Reputation: 11

I think the problem is that the imports didn't recognize the maven dependencies.

Right click on the pom.xml > Maven > Reimport, and that should fix the error.

Upvotes: 1

Related Questions