Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译失败 #418

Open
simon518 opened this issue Oct 22, 2018 · 3 comments
Open

编译失败 #418

simon518 opened this issue Oct 22, 2018 · 3 comments

Comments

@simon518
Copy link

本地编译失败,我看有windows的ide包,能提供一个mac版的吗

@zhuang16384
Copy link
Contributor

你好,编译依赖 jdk8 和 maven3.3以上 ,可以提供供编译报错详细信息吗。

@simon518
Copy link
Author

simon518 commented Nov 6, 2018

buildFat模块通过systemPath引入的com.creditease.monitorframework,编译后lib有这个jar包,但是idea打开就飘红,没有依赖到jar包

环境:jdk8 maven:3.4

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,12] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,13] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,14] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,16] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,17] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,18] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,20] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,22] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,23] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,12] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,13] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,14] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,16] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,17] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,18] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,20] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,22] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,23] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[25,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[26,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[27,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[28,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[30,52] 找不到符号
符号: 类 MonitorElemCapHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[33,24] 找不到符号
符号: 类 MonitorElement
位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[33,45] 找不到符号
符号: 类 CaptureContext
位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[38,23] 找不到符号
符号: 类 MonitorElement
位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[38,44] 找不到符号
符号: 类 CaptureContext
位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[52,26] 找不到符号
符号: 类 MonitorElementInstance
位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[30,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[31,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[32,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[33,59] 程序包com.creditease.monitor.captureframework.spi.Monitor不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[34,40] 程序包com.creditease.monitor.datastore不存在
[INFO] 33 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.769 s
[INFO] Finished at: 2018-11-06T22:49:27+08:00
[INFO] Final Memory: 36M/286M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project com.creditease.uav.monitorframework.buildFat: Compilation failure: Compilation failure:
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,12] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,13] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,14] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,16] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,17] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,18] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,20] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,22] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[916,23] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,12] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,13] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,14] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,16] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,17] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,18] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,20] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,22] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/TestRestService.java:[953,23] 编码UTF-8的不可映射字符
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[25,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[26,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[27,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[28,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[30,52] 找不到符号
[ERROR] 符号: 类 MonitorElemCapHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[33,24] 找不到符号
[ERROR] 符号: 类 MonitorElement
[ERROR] 位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[33,45] 找不到符号
[ERROR] 符号: 类 CaptureContext
[ERROR] 位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[38,23] 找不到符号
[ERROR] 符号: 类 MonitorElement
[ERROR] 位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[38,44] 找不到符号
[ERROR] 符号: 类 CaptureContext
[ERROR] 位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/appmonitor/MyAppMonitorCounterHandler.java:[52,26] 找不到符号
[ERROR] 符号: 类 MonitorElementInstance
[ERROR] 位置: 类 com.creditease.monitorframework.fat.appmonitor.MyAppMonitorCounterHandler
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[30,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[31,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[32,51] 程序包com.creditease.monitor.captureframework.spi不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[33,59] 程序包com.creditease.monitor.captureframework.spi.Monitor不存在
[ERROR] /Users/wangping/springboot/uavstack/com.creditease.uav.monitorframework.buildFat/src/main/java/com/creditease/monitorframework/fat/AppCustomMonitor.java:[34,40] 程序包com.creditease.monitor.datastore不存在
[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

@xxxllluuu
Copy link
Contributor

你好,buildFat工程在新版中已经被移除,如果遇到其它工程有依赖找不到的错误,可以先用Maven将所依赖的工程build一遍。由于我们团队没有人用Mac,所以暂时无法提供Mac版本的ide,Win版本的ide也只是做了一些通用设置,比如代码格式化,所使用的jdk,tomcat和Maven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants