1. 程式人生 > >IDEA檢視原始碼時提示:Library source does not match the bytecode for class的問題分析

IDEA檢視原始碼時提示:Library source does not match the bytecode for class的問題分析

通過Maven檢視依賴的原始碼時,通常是Maven自動下載JAR包附屬的source包,但是會出現一個問題,由於使用lombok外掛會造成編寫的Java檔案和編譯後的class上有差別,所以IDEA開啟時看到的是Maven打包時用的原始碼,而IDEA會自動匹配與.class反編譯後的原始碼,造成不匹配的提示。

解決方法其實可以說是沒有。