1、右键maven项目,选择 build path --------->Configure Build Path ,执行下列操作,保存即可。
maven项目对于测试时“无法加载主类”的解决方案
原文:http://www.cnblogs.com/wiseroll/p/7083261.html