从SVN导入的项目对manager子项目命令
clean
tomcat7:run时,报如下列错误
[INFO] taotao-manager ..................................... SUCCESS [ 0.701 s]
[INFO] taotao-manager-pojo ................................ SUCCESS [ 0.408 s]
[INFO] taotao-manager-mapper .............................. SUCCESS [ 0.082 s]
[INFO] taotao-manager-service ............................. SUCCESS [ 0.092 s]
[INFO] taotao-manager-web ................................. FAILURE [ 1.136 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.660 s
[INFO] Finished at: 2018-05-03T19:14:35+08:00
[INFO] Final Memory: 13M/217M
[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 E:\JAVA\code2\taotao-manager\taotao-manager-web\target\tomcat\logs\access_log.2018-05-03 -> [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]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :taotao-manager-web
与许多其他错误不同,这个异常不是由Maven核心本身产生的,而是
由插件产生的
。
作为一个经验法则,插件会使用此错误来指示其配置中的问题或从POM中检索到的信息。
对于工件下载或上传过程中出现网络相关问题的特殊情况,您还可以查阅以下文章:
下面本人的操作后成功进行编译是
重新删除再从SVN导入。。。
先maven clean掉父项目,再maven install(感觉这才是关键)
运行为
tomcat7:run。不要用clean tomcat7:run
注意:使用maven搭建工程时,父类项目有改动在测试前就得上传到本地仓库(maven install)