我的城市沒有海 2017-06-22 13:27 采纳率: 0%
浏览 2336

maven插件启动tomc这个错的原因是什么?

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.taotao:mytaotao-search-service:war:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.zookeeper:zookeeper:jar -> duplicate declaration of version (?) @ com.taotao:mytaotao-search-service:[unknown-version], D:\develop\DevWorkSpace\myworkspace\mytaotao-search\mytaotao-search-service\pom.xml, line 76, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.github.sgroschupf:zkclient:jar -> duplicate declaration of version (?) @ com.taotao:mytaotao-search-service:[unknown-version], D:\develop\DevWorkSpace\myworkspace\mytaotao-search\mytaotao-search-service\pom.xml, line 80, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] mytaotao-search
[INFO] mytaotao-search-interface
[INFO] mytaotao-search-service
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building mytaotao-search 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mytaotao-search ---
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ mytaotao-search >>>
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ mytaotao-search <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ mytaotao-search ---
[INFO] Skipping non-war project
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building mytaotao-search-interface 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mytaotao-search-interface ---
[INFO] Deleting D:\develop\DevWorkSpace\myworkspace\mytaotao-search\mytaotao-search-interface\target
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ mytaotao-search-interface >>>
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ mytaotao-search-interface ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ mytaotao-search-interface ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to D:\develop\DevWorkSpace\myworkspace\mytaotao-search\mytaotao-search-interface\target\classes
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ mytaotao-search-interface <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ mytaotao-search-interface ---
[INFO] Skipping non-war project
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building mytaotao-search-service 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mytaotao-search-service ---
[INFO] Deleting D:\develop\DevWorkSpace\myworkspace\mytaotao-search\mytaotao-search-service\target
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] mytaotao-search .................................... SUCCESS [ 1.731 s]
[INFO] mytaotao-search-interface .......................... SUCCESS [ 1.385 s]
[INFO] mytaotao-search-service ............................ FAILURE [ 1.457 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.198 s
[INFO] Finished at: 2017-06-22T21:15:09+08:00
[INFO] Final Memory: 17M/170M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project mytaotao-search-service: Failed to clean project: Failed to delete D:\develop\DevWorkSpace\myworkspace\mytaotao-search\mytaotao-search-service\target\tomcat\conf\logging.properties -> [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 -rf :mytaotao-search-service

  • 写回答

2条回答

  • LoveJing_OnlyYou 2017-06-22 13:35
    关注

    应该是同个tomcat在启动着,然后端口占用了,你只需要关闭前一个就行了(菜鸟 错了勿喷)

    评论

报告相同问题?

悬赏问题

  • ¥15 用三极管设计—个共射极放大电路
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示