Maven projects in Eclipse are missing Maven Dependencies

Reprinted from: http://chenzhou123520.iteye.com/blog/1811340

Eclipse cannot find Maven Dependencies after introducing the Maven project. Makes the code report an error, as shown in the following figure:

     

The normal Maven project looks like this:

   

The reason for this phenomenon may be that the development environment corresponding to the project has changed, and the local Maven repository address is inconsistent with the original one. The root cause is that the Maven option of the Maven project is not enabled or the startup is invalid.

   

To solve this problem we just need to restart Dependency Management.

Specific steps: Right-click Maven project --> Macven --> Enable Dependency Management

   

After opening, we can see the Maven Dependencies class library

 

 

Note: If Maven in our original project is in the Enable state, but there is also no Maven Dependencies class library, we will execute Disable Dependency Management on the original Maven project, and then restart it.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327052158&siteId=291194637