异常-------------------------->maven项目没有关闭tomcat就重启tomcat, 导致tomcat再次启动失败的异常

项目结构:

    

  注明: taotao-parent是父工程, taotao-common是工具工程, taotao-manager是后台管理系统, 有四个maven模块pojo/mapper/service/web

情景模拟: 在没有关闭tomcat的情况下重启tomcat导致的tomcat启动失败:

 1 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project taotao-manager-web:
Failed to clean project: Failed to delete E:\taotao\taotao-manager\taotao-manager-web\target\tomcat\logs\access_log.2017-03-25 -> [Help 1] 2 [ERROR] 3 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 4 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 5 [ERROR] 6 [ERROR] For more information about the errors and possible solutions, please read the following articles: 7 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 8 [ERROR] 9 [ERROR] After correcting the problems, you can resume the build with the command 10 [ERROR] mvn <goals> -rf :taotao-manager-web

 

原因: tomcat启动的时候会生成一个日志文件, 当再次启动tomcat的时候 , 注意命令是: clean tomcat7:run, 因为tomcat是运行的, 一clean就会报错

解决方法: 关掉tomcat, 然后启动tomcat

  

 

posted @ 2017-03-25 23:37  半生戎马,共话桑麻、  阅读(471)  评论(0)    收藏  举报
levels of contents