简体   繁体   English

Maven-Eclipse Luna的安装问题

[英]Maven - install issue with Eclipse Luna

I am using Eclipse Luna with Maven 3.0.2, when i try to do mvn install through command prompt on my project , its working fine. 我在Maven 3.0.2中使用Eclipse Luna,当我尝试通过项目上的命令提示符执行mvn install ,它可以正常工作。

But when i run mvn install through eclipse , its failing with the below error 但是当我通过eclipse运行mvn install ,它失败并显示以下错误

plugin - maven jar plugin or one of its dependencies could not be resolved ,   
failed to read the maven-jar 2.4 artifact.
can not access the maven repository using the registered transporter factories 
WagonTransportFactory: java.util.NoSuchElementException

Can anyone help on this if you have faced this before or having knowledge on this. 如果您以前曾遇到过此问题或对此有所了解,任何人都可以提供帮助。

It happens because the proxy restricts call to maven repository: 发生这种情况是因为代理限制了对Maven存储库的调用:

  1. Open settings.xml File as show in image. 如图所示打开settings.xml文件。
  2. Update your proxy settings like below: 如下更新您的代理设置:

在此处输入图片说明

<proxies>
 <proxy>
   <active>true</active>
   <host>myproxy.host.net</host>
   <port>80</port>
 </proxy>
</proxies>

Thanks for your response... 感谢您的答复...

I tried settings.xml and proxy , it didnt happen. 我尝试了settings.xml和proxy,但没有发生。

Then i tried with Kepler eclipse , its working fine now. 然后我尝试使用开普勒日食,它现在工作正常。

I think Luna has some issues. 我认为Luna有一些问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM