编译presto 报错,报错内容如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (checkstyle) on project presto-hive-metastore: You have 1 Checkstyle violation. -> [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn问题原因-rf :presto-hive-metastore MacBook-Pro-2:presto hanzhe$ ./mvnw clean install -DskipTests
原因是重写之后的代码不符合规范,maven-checkstyle-plugin检查失败,如果不打算根据presto的规范改的话。
解决方案presto-root 工程下 修改pom.xml 文件
添加
true
全部如下:
${project.basedir} true true true true src/checkstyle/presto-checks.xml 1.8.0-151 3.3.9



