【presto】presto编译报错

【presto】presto编译报错,第1张

【presto】presto编译报错 前言:

编译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
     

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5687211.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-17
下一篇2022-12-17

发表评论

登录后才能评论

评论列表(0条)

    保存