Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not calculate build plan :artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 is not available in the local repository

I have a spring maven 2 project. I built it in terminal and everything is ok, I got build success, but when trying to import it to eclipse I got this error:

Could not calculate build plan: The repository system is offline but the artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 is not available in the local repository.

although I am getting build success in terminal and projects run fine. I made maven offline in eclipse, and disabled download index on startup any ideas why I am getting this error?

like image 696
Mahmoud Saleh Avatar asked Sep 11 '11 12:09

Mahmoud Saleh


People also ask

How do I download Maven in Eclipse?

#1) From the top menu of Eclipse select Help -> Install new Software, and the following window will open. #2) Click on the Add button highlighted in the above image. An add repository dialogue box will open, enter the following in the two text fields of this box. Click on the Add button.

What is Maven Resources plugin?

The Resources Plugin handles the copying of project resources to the output directory. There are two different kinds of resources: main resources and test resources.

What is the use of Maven war plugin?

The WAR Plugin is responsible for collecting all artifact dependencies, classes and resources of the web application and packaging them into a web application archive.


1 Answers

If you want to use maven from your local installation instead of the embedded version that comes with m2e, You have to do this

  • Windows ==> Preferences ==> Maven ==> Installations ==> Click Add (select your local maven installation directory)
like image 55
Prasanna Talakanti Avatar answered Oct 05 '22 06:10

Prasanna Talakanti