编译器插件的配置不包含TestNG类型。配置文件中的配置与默认配置合并,因此您有效的编译器配置为:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> <testIncludes> <testInclude>**/teststests/utilsteststests/utils/**.*</testExclude> </testExcludes> </configuration></plugin>
这意味着您的TestNG类型不会被编译,因此不会运行。
如果在testNG配置文件中指定
<testExcludes> <testExclude>dummy</testExclude> </testExcludes>



