第一句子网 - 唯美句子、句子迷、好句子大全
第一句子网 > Idea 中出现:运行 Test 时出错。命令行过长。 通过 JAR 清单或通过类路径文件

Idea 中出现:运行 Test 时出错。命令行过长。 通过 JAR 清单或通过类路径文件

时间:2024-06-09 00:32:02

相关推荐

Idea 中出现:运行 Test 时出错。命令行过长。 通过 JAR 清单或通过类路径文件

Idea 中出现:运行 Test 时出错。命令行过长。 通过 JAR 清单或通过类路径文件缩短命令行,然后重新运行。

在项目的 .idea 目录下的 workspace.xml 中的

<component name="PropertiesComponent"><property name="RunOnceActivity.OpenProjectViewOnStart" value="true" /><property name="RunOnceActivity.ShowReadmeOnStart" value="true" /><property name="settings.editor.selected.configurable" value="project.propCompiler" /></component>

添加一个新的属性:

<property name="dynamic.classpath" value="true" />

也有可能是以下样式:

<component name="PropertiesComponent"><![CDATA[{"keyToString": {"RunOnceActivity.OpenProjectViewOnStart": "true","RunOnceActivity.ShowReadmeOnStart": "true","settings.editor.selected.configurable": "preferences.pluginManager"}}]]></component>

添加以下内容即可:

"dynamic.classpath": "true",

最终展示效果为:

<component name="PropertiesComponent"><![CDATA[{"keyToString": {"RunOnceActivity.OpenProjectViewOnStart": "true","RunOnceActivity.ShowReadmeOnStart": "true","settings.editor.selected.configurable": "preferences.pluginManager","dynamic.classpath": "true"}}]]></component>

Idea 中出现:运行 Test 时出错。命令行过长。 通过 JAR 清单或通过类路径文件缩短命令行 然后重新运行。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。