解决m2eclipse插件添加依赖结果集为空

来源:互联网 发布:岗顶数据恢复 编辑:程序博客网 时间:2024/06/07 17:13

使用m2eclipse插件add dependency的时候无法自动搜索远程库,search result总是空的,原因是远程库的索引没有成功的建立,中央仓库的index文件没有下载成功。

解决办法:

show view –> other –> Maven Repositories 右键点击 local repository 选择Rebulid Index即可 


转载:http://my.oschina.net/zhuka/blog/104685






2.2. Download the Maven index

By default the Maven tooling does not download the Maven index. Via this index you can search for dependency, select them and add them to your pom file. To download the index, select Windows → Preferences→ Maven and enable the Download repository index updates on startup option.

Download the Maven index

After changing this setting, restart Eclipse. This will trigger the download of the Maven index. You may want to remove this flag after restarting to avoid network trafic at every start of Eclipse.


转载:http://www.vogella.com/tutorials/EclipseMaven/article.html#supportandlicense

0 0
原创粉丝点击