最近,我新创建的IntelliJ项目无法在控制台中运行scala测试并出现以下错误:
2015-07-30 09:46:56,731 [72575363]错误 - llij.ide.plugins.PluginManager - 组织/ JetBrains公司/想法/行家/项目/ MavenProjectsManager java.lang.NoClassDefFoundError: 组织/ JetBrains公司/想法/行家/项目/ MavenProjectsManager 在org.jetbrains.plugins.scala.testingSupport.test.AbstractTestRunConfiguration.provideDefaultWorkingDir(AbstractTestRunConfiguration.scala:122) 在org.jetbrains.plugins.scala.testingSupport.test.AbstractTestRunConfiguration.initWorkingDir(AbstractTestRunConfiguration.scala:116) 在org.jetbrains.plugins.scala.testingSupport.test.scalatest.ScalaTestConfigurationProducer.createConfigurationByLocation(ScalaTestConfigurationProducer.scala:62) at org.jetbrains.plugins.scala.testingSupport.test.AbstractTestConfigurationProducer $ class.createConfigurationByElement(AbstractTestConfigurationProducer.scala:30) 在org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.createConfigurationByElement(TestConfigurationProducer.scala:18) 在org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.setupConfigurationFromContext(TestConfigurationProducer.scala:33) 在org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.setupConfigurationFromContext(TestConfigurationProducer.scala:18) at com.intellij.execution.actions.RunConfigurationProducer.createConfigurationFromContext(RunConfigurationProducer.java:87) 在com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:170) at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:106) at com.intellij.execution.actions.PreferredProducerFind.findConfigurationFromContext(PreferredProducerFind.java:131) at com.intellij.execution.actions.PreferredProducerFind.createConfiguration(PreferredProducerFind.java:43) 在com.intellij.execution.actions.ConfigurationContext.createConfiguration(ConfigurationContext.java:119) 在com.intellij.execution.actions.ConfigurationContext.getConfiguration(ConfigurationContext.java:112) 在com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:194) 在com.intellij.openapi.actionSystem.AnAction.beforeActionPerformedUpdate(AnAction.java:243) 在com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:111) 在com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:620) 在com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:483) 在com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:213) 在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538) 在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) 2015-07-30 09:46:56,731 [72575363]错误 - llij.ide.plugins.PluginManager - IntelliJ IDEA 14.1.4构建 IU-141.1532.4 2015-07-30 09:46:56,731 [72575363]错误 - llij.ide.plugins.PluginManager - JDK:1.8.0_31 2015-07-30 09:46:56,731 [72575363]错误 - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM)64位服务器VM 2015-07-30 09:46:56,731 [72575363] 错误 - llij.ide.plugins.PluginManager - 供应商:Oracle Corporation 2015-07-30 09:46:56,731 [72575363]错误 - llij.ide.plugins.PluginManager - 操作系统:Linux
我四处搜寻,但找不到任何有用的东西。任何人都有同样的问题,并知道如何解决它?
答案 0 :(得分:1)
找到它。
从设置中安装“Maven Integration”插件。
如果您想知道我是如何解决的,我发现即使您尝试创建新的spec2配置也会出现奇怪的错误。
这是我的控制台中的错误:
[ 73962] ERROR - llij.ide.plugins.PluginManager - org/jetbrains/idea/maven/project/MavenProjectsManager
java.lang.NoClassDefFoundError: org/jetbrains/idea/maven/project/MavenProjectsManager
at org.jetbrains.plugins.scala.testingSupport.test.AbstractTestRunConfiguration.provideDefaultWorkingDir(AbstractTestRunConfiguration.scala:122)
org.jetbrains.idea.maven.project.MavenProjectsManager
类位于maven插件中。
安装解决了这个问题和这个问题。