Intellij未检测到最新的依赖性

发布于 2025-02-01 19:15:19 字数 326 浏览 1 评论 0原文

我正在使用MVN test -dtest = MessageListenerApptest运行测试文件,并且运行良好。
但是,当我打开MessagelistenerApptest.java文件并在Intellij中右键单击时。
我得到了java.lang.noclassdeffounderror:org/junit/jupiter/api/extension/scriptevaluationException

我尝试重新启动Intellij,使caches无效,但仍然存在相同的错误。



这样做的原因是什么?

I am running a test file using mvn test -Dtest=MessageListenerAppTest, and it's running fine.
But when I open the MessageListenerAppTest.java file and right-click on it in Intellij.
I get a java.lang.NoClassDefFoundError: org/junit/jupiter/api/extension/ScriptEvaluationException

I tried restarting Intellij, invalidating caches, but still the same error.
What could be the reason for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文