windows --preference--java--build path--Classpath Variables--选择M2_REPO 双击 在弹出框中选择你的maven仓库 点OK 保存 转载于:https://www.cnblogs.com/wraity/p/4892775.html