2014-06-10 37 views
0

所以這是一個Web應用程序,運行應用程序編碼的jvm必須是Cp1252才能使Web應用程序正常工作。IntelliJ添加額外的jvm參數,但在哪裏?

在.bash_profile中當我添加:

export MAVEN_OPTS="-Dfile.encoding=Cp1252" 

,開拓終端,並開始與碼頭:

mvn org.mortbay.jetty:maven-jetty-plugin:6.1.22:run 

一切都會好起來。我怎麼知道?有哪些檢查在網絡編碼應用程序本身的網頁,它顯示:

Encoding JVM: windows-1252/Encoding Application: Cp1252 

現在,當我在的IntelliJ同一個JVM的參數,我看到這個被添加到我的參數:

-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 12.app/bin" -Dfile.encoding=UTF-8 

,這打破了一切。

如何編輯IntelliJ添加到maven runner的參數?

回答

相關問題