Maven error in eclipse (pom.xml) : Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

前端 未结 8 1938
广开言路
广开言路 2021-02-01 04:53

I wanna make web project using the Maven to import automatically all libraries that I need, so I chose \"maven-archetype-webpp\"

after that I got this error

8条回答
  •  滥情空心
    2021-02-01 05:12

    For Unix Users

    find ~/.m2 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;

    Right-click your project and choose Update Dependencies

    For Windows

    • CD (change directory) to .m2\repository
    • execute the command for /r %i in (*.lastUpdated) do del %i
    • Then right-click your project and choose Update Dependencies

提交回复
热议问题