Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mvn install error again

Tags:

maven

mvn install i 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.

like image 499
Anitha Raj Avatar asked Mar 15 '12 12:03

Anitha Raj


1 Answers

Solution:

Add the below dependency to pom.xml:

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

Then run "mvn clean install" from command prompt.

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

like image 173
umasankar pradhan Avatar answered Sep 27 '22 21:09

umasankar pradhan