打包发生错误的原因是,在 test 里的测试代码有错
Please refer to D:\springmvcall\springmvc_006_ssm\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
解决办法
<plugins>
<!-- maven 打包时跳过测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
如果不添加打包时跳过测试的这个代码,就无法显示真正导致程序出错的原因!!!