Java Maven-EclipseLuna的安装问题
我正在将EclipseLuna与Maven 3.0.2一起使用,当我尝试在我的项目上通过命令提示符进行Java Maven-EclipseLuna的安装问题,java,eclipse,maven,Java,Eclipse,Maven,我正在将EclipseLuna与Maven 3.0.2一起使用,当我尝试在我的项目上通过命令提示符进行mvn安装时,它工作得很好 但是当我通过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 mav
mvn安装时,它工作得很好
但是当我通过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
如果您以前遇到过此问题或了解此问题,有人可以对此提供帮助。这是因为代理限制了对maven repository的调用:
打开settings.xml
文件,如图所示
更新代理设置,如下所示:
符合事实的
myproxy.host.net
80
感谢您的回复
我尝试了settings.xml和proxy,但没有成功
然后我尝试了开普勒日食,它现在可以正常工作了
我认为Luna有一些问题。尝试更新您的eclipse以使用外部maven安装:Windows>首选项>maven>安装Hanks…这没有帮助..现在开普勒版本工作正常。。。
<proxies>
<proxy>
<active>true</active>
<host>myproxy.host.net</host>
<port>80</port>
</proxy>
</proxies>