解决办法: build path->configure build path->source,双击“conntains test source:yes” 变为“conntains test source:yes” pom文件里面去掉或注释掉test