記錄maven編譯proto文件的一個坑


編譯其他分支都沒問題,編譯剛剛更新的分支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文件定義出現問題,但是我還是沒找出文件哪里定義錯了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM