By right-clicking the pom.xml file to select Maven–> add dependency or by opening the Pom.xml file, when you select Dependencies–>add, you cannot search for the dependent jar package, the workaround is as follows:
1. Eclipse Menu window-> Show view–> other–> Maven
2, in the open window, right-click Local repositories–> local repository, select Rebuild Index
Add:
1. Confirm that the Pom.xml file is correct
2, confirm that the local MAVEN warehouse has the same version of the jar package, if not, try to down the way down.
3. In Eclipse, right-click Project, maven->update dependencies, or update project configuration, or encode Pom.xml file, then save
4, no, delete the local repository, the corresponding Jar folder in the directory except the jar file all documents, and then repeat the 3 operation
5, no, re-open the next project
6, no, restart the eclipse
Original link: http://www.cnblogs.com/alex-blog/archive/2011/12/03/2274428.html
Eclipse plugin maven is using Add dependency, unable to find package, workaround