Accepted answer
  1. on the top menu bar, open window -> show view -> other
  2. in the show view window, open maven -> maven repositories

show view - maven repositories

  1. in the window that appears, right-click on global repositories and select go into
  2. right-click on "central (" and select "rebuild index"
  • note that it will take very long to complete the download!!!
  1. once indexing is complete, right-click on the project -> maven -> add dependency and start typing the name of the project you want to import (such as "hibernate").
  • the search results will auto-fill in the "search results" box below.


i have faced same problem with maven dependencies, eg: unfortunetly your maven dependencies deleted from your buildpath,then you people get lot of exceptions,if you follow below process you can easily resolve this issue.

 right click on project >> maven >> updateproject >> selectproject >> ok


i have faced the similar issue and fixed by copying the missing jar files in to .m2 path,

for example: if you see the error message as missing artifact tws:axis-client:jar:8.7 then you have to download "axis-client-8.7.jar" file and paste the same in to below location will resolve the issue.

c:\users\usernamexxx.m2\repository\tws\axis-client\8.7(paste axis-client-8.7.jar).

finally, right click on project->maven->update project...thats it.

happy coding.


open the pom.xml file.

under the project tag add <dependencies> as another tag, and google for the maven dependencies. i used this to search.

so after getting the dependency create another tag dependency inside <dependencies> tag.

so ultimately it will look something like this.

<project xmlns="" xmlns:xsi="" xsi:schemalocation="">
      <!-- -->

hope it helps.


you need to be using a maven plugin for eclipse in order to do this properly. the m2e plugin is built into the latest version of eclipse, and does a decent if not perfect job of integrating maven into the ide. you will want to create your project as a 'maven project'. alternatively you can import an existing maven pom into your workspace to automatically create projects. once you have your maven project in the ide, simply open up the pom and add your dependency to it.

now, if you do not have a maven plugin for eclipse, you will need to get the jar(s) for the dependency in question and manually add them as classpath references to your project. this could get unpleasant as you will need not just the top level jar, but all its dependencies as well.

basically, i recommend you get a decent maven plugin for eclipse and let it handle the dependency management for you.


in fact when you open the pom.xml, you should see 5 tabs in the bottom. click the pom.xml, and you can type whatever dependencies you want.

enter image description here

Related Query

More Query from same tag