运行maven项目报错

时间:2021-06-05 15:54:02
运行maven报错
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] taotao-manager
[INFO] taotao-manager-pojo
[INFO] taotao-manager-mapper
[INFO] taotao-manager-service
[INFO] taotao-manager-web
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager-pojo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-pojo ---
[INFO] Deleting D:\Myeclipse10.7\WorkspaceMaven\taotao-manager\taotao-manager-pojo\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager-mapper 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-mapper ---
[INFO] Deleting D:\Myeclipse10.7\WorkspaceMaven\taotao-manager\taotao-manager-mapper\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager-service 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-service ---
[INFO] Deleting D:\Myeclipse10.7\WorkspaceMaven\taotao-manager\taotao-manager-service\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building taotao-manager-web 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-web ---
[INFO] Deleting D:\Myeclipse10.7\WorkspaceMaven\taotao-manager\taotao-manager-web\target
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] taotao-manager .................................... SUCCESS [0.241s]
[INFO] taotao-manager-pojo ............................... SUCCESS [0.072s]
[INFO] taotao-manager-mapper ............................. SUCCESS [0.031s]
[INFO] taotao-manager-service ............................ SUCCESS [0.027s]
[INFO] taotao-manager-web ................................ FAILURE [1.143s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.817s
[INFO] Finished at: Fri Jun 23 17:27:35 CST 2017
[INFO] Final Memory: 5M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project taotao-manager-web: Failed to clean project: Failed to delete D:\Myeclipse10.7\WorkspaceMaven\taotao-manager\taotao-manager-web\target\tomcat\logs\access_log.2017-06-23 -> [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 :taotao-manager-web

1 个解决方案

#1


把taotao-manager-web项目下的target清空再试试

#1


把taotao-manager-web项目下的target清空再试试