Eclipse M2eclipse从本地存储库获取依赖项

Eclipse M2eclipse从本地存储库获取依赖项

问题描述:

我在我的计算机上本地安装了依赖项(〜/.m2/repository/blah/blah/blah),而m2eclipse不能在那里识别它们-我认为m2eclipse正在使用其自己的maven实例.有什么方法可以强制m2eclipse在osx中​​使用本地Maven安装?

I have dependencies installed local on my machine (~/.m2/repository/blah/blah/blah) and m2eclipse is not recognizing them as there - I think m2eclipse is using its own maven instance. Is there any way to force m2eclipse to use the local maven installation in osx?

我遇到了同样的问题,这对我有用.使用Eclipse Indigo:

I had the same problem, and this is what worked for me. Using Eclipse Indigo:

Windows->显示视图->其他

Windows->Show View->Other

在弹出窗口中: Maven-> Maven存储库

In the pop-up: Maven->Maven Repositories

显示视图后,右键单击相应的存储库,然后选择重建索引"

Once the view is displayed, right click on the appropriate repo, and select "Rebuild Index"

等待几秒钟并完成!