本文介绍了MVN再次安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MVN安装我收到以下错误

mvn installi get the following error

[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its
 dependencies could not be resolved: Failed to read artifact descriptor for org.
apache.maven.plugins:maven-resources-plugin:jar:2.5: Could not transfer artifact
 org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http:/
/repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.org refus
ed: Connection timed out: 

我尝试使用堆栈中的较早答案设置代理,但仍然面临问题.需要通过帮助的明确步骤.

I tried to set proxy using the earlier answers in stack but still i am facing the problem.A clear step thru help is required.

推荐答案

解决方案:

将以下依赖项添加到pom.xml:

Add the below dependency to pom.xml:

<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <version>2.5</version>
</dependency>

然后在命令提示符下运行"mvn clean install".

Then run "mvn clean install" from command prompt.

刷新后(F5)并在Eclipse中升级项目配置(运行> Maven>更新项目配置.)

After that refresh (F5) and upgrade the project configuration in eclipse (run > Maven > Update Project Configuration.)

这篇关于MVN再次安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 04:42