[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentController.java:[10,26] 找不到符号
符号: 类 ContentService
位置: 程序包 com.taotao.service
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentController.java:[21,17] 找不到���号
符号: 类 ContentService
位置: 类 com.taotao.controller.ContentController
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentCatgoryController.java:[13,26] 找不到符号
符号: 类 ContentCategoryService
位置: 程序包 com.taotao.service
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentCatgoryController.java:[24,17] 找不到符号
符号: 类 ContentCategoryService
位置: 类 com.taotao.controller.ContentCatgoryController
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.896 s
[INFO] Finished at: 2018-02-08T11:16:29+08:00
[INFO] Final Memory: 15M/36M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project taotao-manager-web: Compilation failure: Compilation failure:
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentController.java:[10,26] 找不到符号
[ERROR] 符号: 类 ContentService
[ERROR] 位置: 程序包 com.taotao.service
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentController.java:[21,17] 找不到���号
[ERROR] 符号: 类 ContentService
[ERROR] 位置: 类 com.taotao.controller.ContentController
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentCatgoryController.java:[13,26] 找不到符号
[ERROR] 符号: 类 ContentCategoryService
[ERROR] 位置: 程序包 com.taotao.service
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentCatgoryController.java:[24,17] 找不到符号
[ERROR] 符号: 类 ContentCategoryService
[ERROR] 位置: 类 com.taotao.controller.ContentCatgoryController
[ERROR] -> [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:
符号: 类 ContentService
位置: 程序包 com.taotao.service
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentController.java:[21,17] 找不到���号
符号: 类 ContentService
位置: 类 com.taotao.controller.ContentController
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentCatgoryController.java:[13,26] 找不到符号
符号: 类 ContentCategoryService
位置: 程序包 com.taotao.service
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentCatgoryController.java:[24,17] 找不到符号
符号: 类 ContentCategoryService
位置: 类 com.taotao.controller.ContentCatgoryController
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.896 s
[INFO] Finished at: 2018-02-08T11:16:29+08:00
[INFO] Final Memory: 15M/36M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project taotao-manager-web: Compilation failure: Compilation failure:
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentController.java:[10,26] 找不到符号
[ERROR] 符号: 类 ContentService
[ERROR] 位置: 程序包 com.taotao.service
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentController.java:[21,17] 找不到���号
[ERROR] 符号: 类 ContentService
[ERROR] 位置: 类 com.taotao.controller.ContentController
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentCatgoryController.java:[13,26] 找不到符号
[ERROR] 符号: 类 ContentCategoryService
[ERROR] 位置: 程序包 com.taotao.service
[ERROR] /D:/demo/taotao-manager/taotao-manager-web/src/main/java/com/taotao/controller/ContentCatgoryController.java:[24,17] 找不到符号
[ERROR] 符号: 类 ContentCategoryService
[ERROR] 位置: 类 com.taotao.controller.ContentCatgoryController
[ERROR] -> [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/MojoFailureException
问题:使用maven构建多个模块组成的项目,运行taotao-manager-web,报错如上
解决方法:应该运行的是taotao-manager项目