eclipse has no Maven Dependencies

I accidentally removed Maven Dependencies yesterday. A pain in the ass...!

1: Find the previous version of the project

2: Replace your .classpath file directly

3: Find the project-right click-Maven-Update Project... Alt+F5

4: Find the project - right click - Build Path - Configure Build Path... Have you seen Maven Dependencies in the LiBraries list?

How to add Maven <wbr>Dependencies after the maven project is removed

 

 

If your project has no previous version

1: Open the .classpath file

How to add Maven <wbr>Dependencies after the maven project is removed

Just add the blue background part above to your .classpath file

 

The line numbers are added in front of the above code because Sina Blog directly displays the code to avoid this problem.

Guess you like

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