修改 maven-->conf :settings.xmlmaven
<offline>false</offline>this
<mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://mvnrepository.com/</url> </mirror>url