1. 程式人生 > 其它 >maven 打包時報錯 (Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) Compilation failure javac: �Ҳ����ļ�:)

maven 打包時報錯 (Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) Compilation failure javac: �Ҳ����ļ�:)

解決在idea中使用maven外掛時出現亂碼

分析原因:
上述亂碼的中文其編碼是windows下的本地編碼(GBK)
在idea 整合的 maven中使得預設vm 的編碼是utf-8.所以出現控制檯亂碼.

解決方案:如圖將maven 執行時vm檔案編碼設定為本地windows預設編碼.解決問題.

----DarchetypeCatalog=internal -Dfile.encoding=GBK

TRANSLATE with x English
Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan
Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian
TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back