<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!--指定需要跑的单元测试--> <includes> <include>**/*Documentation.java</include> </includes> <!--指定编码,防止控制台乱码--> <argLine>-Dfile.encoding=UTF-8</argLine> </configuration> </plugin>