Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav问题

1. The cause of the problem: from installing the system, from win7 to win10

  Due to the reinstallation of the system, when opening eclipse, the maven verification will go wrong. Click the pom file, and you will find the red Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav. It is blank when clicked. . . .

2. Track down the cause of the error

  alt+f5, update all, it will prompt an error message, it turned out to be C:\Users\Administrator\.m2\repository which could not be found in it.

3. Solutions

Delete the repository of C:\Users\Administrator\.m2\repository,  then go back and continue with alt+f5, and it will be OK after a while.

 

The mirror configuration of the setting.xml file in my maven is the beauty Ali. If you are a local warehouse, sorry, I don't know if the above can solve your needs.

Guess you like

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