在Maven项目中,我有一些使用Kotlin ScriptEngine (只需调用scriptEngine.eval(script))的测试。当我从IntelliJ运行测试时,它们都通过了,但是在运行mvn test的过程中,我得到了以下错误: javax.script.ScriptException: Cannot access script base class 'kotlin.script.experimental.jsr223.KotlinJsr223DefaultScript'. Check your module classpath for missing or
Could not calculate build plan: The repository system is offline but the artifact org.apache.maven.surefire:surefire:pom:2.7.1 is not available in the local repository.让我感到奇怪的是,它搜索的是org.apache.maven.surefire:surefire,而真正的依赖项是org.apache.maven.surefire:mave
(ProviderFactory.java:158)[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
[ERROR] at org.apache.maven.surefire.booter.For