编译其他分支都没问题,编译刚刚更新的分支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文件定义出现问题,但是我还是没找出文件哪里定义错了。