Eclipse M2eclipse从本地存储库获取依赖项 [英] Eclipse m2eclipse getting dependencies from local repository

查看:88
本文介绍了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"

等待几秒钟并完成!

这篇关于Eclipse M2eclipse从本地存储库获取依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆