http://blog.csdn.net/andyliulin/article/details/46544555
1. Select the project's pom.xml file
2.Run As-----》maven build...
3.GOALS input:
dependency:copy-dependencies
或
(specify folder)
dependency:copy-dependencies -DoutputDirectory=lib