首页 > 其他 > 详细

记录maven编译proto文件的一个坑

时间:2019-08-01 12:16:04      阅读:116      评论:0      收藏:0      [点我收藏+]

编译其他分支都没问题,编译刚刚更新的分支A,则出现问题;回退A的另一个版本也可以正常通过。

报错信息:

  

[INFO] --- protostuff-maven-plugin:1.6.0:compile (generate-sources) @ oms-protos ---
line 1:0 no viable alternative at character ‘锘‘
line 1:1 no viable alternative at character ‘縫‘
line 1:2 required (...)+ loop did not match anything at input ‘ackage‘
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.825 s
[INFO] Finished at: 2019-08-01T11:45:39+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.protostuff:protostuff-maven-plugin:1.6.0:compile (generate-sources) on project oms-protos: null: MojoExecutionException: NullPointerException -> [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

 

不提示哪个文件,MojoExecutionException这个异常误导了我。把A分支最新更新的proto文件删除则编译正常通过。结果是刚刚编辑的proto文件定义出现问题,但是我还是没找出文件哪里定义错了。

记录maven编译proto文件的一个坑

原文:https://www.cnblogs.com/ranran-liang123/p/11281579.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!