在STS中windows->preferences->maven->user settings
修改user settings里setting.xml配置文件
<?xml version="1.0" encoding="UTF-8"?> <settings> <localRepository>D:MavenRepository</localRepository> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers> </servers> <mirrors> <mirror> <id>Central</id> <url>http://repo1.maven.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> <profiles> </profiles> </settings>
应用退出