我已經對javac進行了一些代碼更改,並希望maven使用我更改的javac版本。不幸的是,maven似乎發佈了自己的javac實現。如何讓maven使用全系統javac(在shell中運行javac
時執行的那個)編譯源代碼。強制Maven使用System的javac
沒有真正知道這些選項的意思是,我試圖提供fork
和forceJavacCompilerUse
我發現在這裏:http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html 但他們似乎並沒有幫助的。