http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 异常
Maven编译碰到这个异常错误
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:testResources (default-testResources) on project sas-framework: Cannot create resource output directory: D:\project\sas\01 开发库\1.1 开发代码\trunk\sas\sas-framework\target\test-classes -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sas-framework
D:\project\sas\01 开发库\1.1 开发代码\trunk\sas\sas-framework\target\test-classes -> [Help 1]
从在这句错误提示找到了可疑点,发现test-classes这个文件被别的程序(SourceMonitor)占用的,试下点击删除提示此文件拒绝访问,把SourceMonitor关闭,问题修复。