java Netbeans:传输 Maven 存储库索引:中央 - 停留在 0%
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9875028/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Netbeans: Transferring Maven Repository index: Central - stuck at 0%
提问by Webnet
I'm unable to get the Central Maven repo index. I'm running Netbeans 7.0.1 and have tried rebooting my PC, rebooting Netbeans 4 times and alternate mirrors. It sits at 0% and never goes anywhere and never throws an error. I'm unsure what to try or what to investigate to try to determine the problem.
我无法获得中央 Maven 回购索引。我正在运行 Netbeans 7.0.1 并尝试重新启动我的 PC,重新启动 Netbeans 4 次和备用镜像。它位于 0%,永远不会去任何地方,也永远不会抛出错误。我不确定要尝试什么或调查什么来尝试确定问题。
采纳答案by Ilya
Try to move the local-Repository-path to another place, in the file: conf/settings.xml
尝试将 local-Repository-path 移动到另一个位置,在文件中:conf/settings.xml
<localRepository>D:/mvn_repo</localRepository>
Also check maven's configuration.
还要检查maven的配置。
回答by Amer
How to Stop Netbeans: Transferring repository index
I see at status bar, that Netbeans is Transferring repository index : java.net repository. It slows down my computer very much. Very annoying.
如何停止 Netbeans:传输存储库索引
我在状态栏中看到,Netbeans 正在传输存储库索引:java.net 存储库。它大大减慢了我的计算机的速度。很烦人。
Solution for Netbeans 7.4 (and possibly later versions, 8.0):
Tools | Options | Java | Maven | Index”, find “Index Update Frequency” and then adjust how often it should be updated (Never :).
Netbeans 7.4(可能还有更高版本,8.0)的解决方案:
工具 | 选项 | 爪哇| 马文 | 索引”,找到“索引更新频率”,然后调整它应该更新的频率(从不:)。
回答by Cyberwiz
Had the same problem myself, it turned out to be the proxy settings (Tools/Options/Proxy settings).
我自己也有同样的问题,原来是代理设置(工具/选项/代理设置)。
回答by Mohammed Pasha
Add -J-Djava.io.tmpdir=T:/Temp
to the end of the netbeans_default_options
property in NetBeans/etc/netbeans.conf
configuration file, assuming that T:\
has a lot more space than C:\
.
添加-J-Djava.io.tmpdir=T:/Temp
到配置文件中netbeans_default_options
属性的NetBeans/etc/netbeans.conf
末尾,假设它T:\
比C:\
.