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?


If your pom is not specific as to the version of the maven-resources-plugin, that version will come from the superpom. By default, m2e uses an embedded copy of Maven 3.0.x. If the superpom there points to 2.4.3 and your 'outside-of-Eclipse' version asks for something else, then the Maven inside of Eclipse will go looking for 2.4.3 and fail due to the 'offline'.

Fix by configuring m2e to use the Maven installation you are using outside, or turning off 'offline' for one build.

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)

add below line to your pom.xml and build it through command line using ‘mvn install’. That will download the plugin and then try to build from Eclipse. make sure your Eclipse is using the same Maven not the embeded one. If you are still having issues, delete it from local repository and try again. The line to add is


before doing that find where your local repo is, then go to "/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/", remove the contents and do "update dependencies" from Maven.

Just right click on the project in eclipse and in the maven option select update maven project and dont forget to check force update check box and finally hit on ok. It worked for me.

Try Right clicking on POM.xml --> maven --> update project.

Need Your Help

Script IIS 5.1 installation on Windows XP

windows scripting install iis-5

I found an idea for scripting the installation of IIS7 on Vista

Add textblock to ellipse in WPF

wpf silverlight textblock ellipse

How to add a TextBlock to an Ellipse in WPF/Silverlight?