问题描述
当我尝试添加一个目标我没有得到任何目标..有任何解决方案或我应该手动添加他们。但在一个例子中,我看到它自动列出所有可用的目标..
When i try to add a goal I dont get any goals.. Is there any solution or i should manually add them..But in an example I saw it automatically lists all the available goals..
推荐答案
为我工作:在Eclipse中,打开视图Maven Repositories并展开全局存储库。右键单击您的中央镜像(或中心,如果未定义镜像),然后选择启用完整索引。在存储库上再次右键单击并选择重建索引。等待更新索引完成,并从右下角的Eclipse进度指示器消失。
The workaround described in m2eclipse JIRA worked for me: In Eclipse, open the view "Maven Repositories" and expand "Global Repositories". Right-click on your mirror of central (or "central" if no mirror defined) and select "Enable Full Index". Right-click again on the repository and select "Rebuild Index". Wait until "Updating indexes" finishes and vanishes from the Eclipse progress indicator in the lower right corner.
这篇关于m2Eclipse中的空目标列表(MAVEN)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!