Maven使用 当build项目时,出现Failed to collect dependencies for [junit:junit:jar:4.5 (test)..],则应该在eclipse中给项目添加classpath变量,指向maven储藏室中的jar Libraries-->Add Variable-->Configure Variables-->New-->Name:M2_REPOPath:C:/U.../.../.m2/repository