Solve the problem that idea import maven project lacks jar package

I have been using elipse before, but I am not familiar with idea now, so I will record it here. Here take idea2017 as an example.

Import the maven project of elipse, and it prompts that the jar package is missing. It must be that idea did not guide you.

The first step is to first confirm whether the environment of your idea and maven is configured properly.

The second step is to confirm the Module settings when you import the project.



After getting your own maven configuration, let's take a look at the Module settings of the project.



Delete the previous Module and re-import it again.


After clicking +, select the local path of the project, then select Maven in the pop-up interface, then go all the way to Next, and finally click Apply > OK. If the idea keeps running and does not download, close and restart the idea and it will be ok .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326398346&siteId=291194637