命令行太长。缩短测试或 JUnit 默认配置的命令行?

Command line is too long. Shorten command line for Test or also for JUnit default configuration?

我正在尝试 运行 我的 junits,但 intellij 给我一个错误:

我在很多网站上都看到了错误,但是配置页面与当前的 intellij 页面不同。

现在,intellij-idea 有这样的配置页面:

我需要修改什么才能修复它?

这是我的智能信息:

IntelliJ IDEA 2020.3.2(终极版)Build #IU-203.7148.57,构建于 2021 年 1 月 26 日运行时版本:11.0.9.1+11-b1145.77 amd64 VM:OpenJDK 64 位服务器 VM by JetBrains s.r.o。 Windows 10 10.0 GC:ParNew、ConcurrentMarkSweep 内存:1955M 内核:8 个非捆绑插件:com.dubreuia、org.sonarlint.idea、org.jetbrains.kotlin

您好,非常感谢:D

您可以缩短命令行,方法是选中“添加 运行 选项”菜单中的“缩短命令行”,该菜单位于“构建和 运行”的“修改选项”下测试配置选项卡 - 如下所示。

来自这个link:https://devis.cool/quick-fix/quickfix-intellij-idea-command-line-is-too-long-shorten-command-line-for/

从项目根文件夹打开文件。idea/workspace。xml,转到部分并添加以下内容:

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

它应该看起来像这样:

<component name="PropertiesComponent">
    <property name="dynamic.classpath" value="true" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="aspect.path.notification.shown" value="true" />
    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
</component>

它对我有用。