`
Kenny.Lee
  • 浏览: 511145 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

解决导入本地JAR包到Maven Repository报错问题

阅读更多
使用eclipse的maven插件时,在添加本地JAR包到repository的时候会遇到类似的以下问题。说明更新index时候失败。所以无法使用导入的本地的JAR包。

Error on adding indexing context local; Cannot overwrite: C:\Documents and Settings\xxx\workspace\.metadata\.plugins\org.maven.ide.eclipse\nexus\local\_0.fdt

Error on removing indexing context local; Cannot
delete: C:\Documents and Settings\xxx\workspace\.metadata\.plugins\org.maven.ide.eclipse\nexus\local\_0.fdt

触发这个问题原因是更新index的时候该文件正在被使用,所以不能做任何修改操作。

解决办法:

打开eclipse插件中的 "Maven Indexes" view.
具体操作在eclipse工具栏上依次找到: Windows > Show view > Other > Maven Indexes.

然后打开"Maven Indexes" view,在local repository上右键执行update index.即可。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics