idea 啟動shorten command line too long 錯誤解析
阿新 • • 發佈:2021-09-27
因為專案啟動的命令列太長了經常是帶一些vm引數或者一些依賴jar
idea提供了三種方式
Select a method that will be used to shorten the command line if the classpath gets too long or you have many VM arguments that exceed your OS command line length limitation:
none: IntelliJ IDEA will not shorten a long classpath. If the command line exceeds the OS limitation, IntelliJ IDEA will be unable to run your application and will display a message suggesting you to specify the shortening method.
JAR manifest: IntelliJ IDEA will pass a long classpath via a temporary classpath.jar. The original classpath is defined in the manifest file as a class-path attribute in classpath.jar. Note that you will be able to preview the full command line if it was shortened using this method, not just the classpath of the temporary classpath.jar.
classpath.file: IntelliJ IDEA will write a long classpath into a text file.
User-local default: this legacy option is set automatically for projects created before IntelliJ IDEA version 2017.3. IntelliJ IDEA will configure this setting depending on the properties set in the ide/workspace.xml and idea.config.path/options/options.xml files.
This setting is shared if you select to share your run/debug configuration, so the same method will be applied for your team members irrespective of their operating system.
none 是不改變啟動命令列
jar manifest是合併內容到manifest後啟動
classpath 是通過把引數封裝進檔案後啟動
2、3都行推薦3