操作描述
- Window → Show view → Other → Maven → Maven Repositories → Local Repositories → 右键选择 Rebuild Index(不要重复点击,否则 Eclipse 可能会卡死,需要后台更新完毕后查看)。
- (可选)Window → Preferences → Maven → 选择 Download repository index updates on startup。
- pom.xml编辑视图 → 右键 → Maven → Add Dependency → 可模糊(*)搜索。
操作截图
步骤1-1:
步骤1-2:
步骤1-3:
步骤1设置成功后效果:
步骤2-1:
步骤3-1(方式一:可视化视图添加依赖):
步骤3-1(方式二:xml视图添加依赖):
步骤3-2: