我最近安装了IDEA的新版本(2018.2.5),为此使用内置的IDEA功能创建了maven项目,在编译TestNG测试期间,我注意到了这一点:
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ GoogleSearchTest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\user\IdeaProjects\GoogleSearchTest\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ GoogleSearchTest ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to C:\Users\user\IdeaProjects\GoogleSearchTest\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ GoogleSearchTest ---
[INFO] Surefire report directory: C:\Users\user\IdeaProjects\GoogleSearchTest\target\surefire-reports
如果您查看mvnrepository网站,您会看到插件的版本已过时,它是2012-2013年的,不知道为什么会这样...