1、查看maven配置setting.xml是否有设置远程仓库
2、sts是否正确配置指定了setting.xml
3、是否开启线上下载,如下图
Maven 在sts不会自动下载包的问题
原文:http://www.cnblogs.com/rgky/p/5418257.html