简体   繁体   English

分叉进程 org/apache/commons/io/FileUtils org.apache.maven.surefire.booter.SurefireBooterForkException 中出现错误

[英]There was an error in the forked prpcess org/apache/commons/io/FileUtils org.apache.maven.surefire.booter.SurefireBooterForkException

When I am trying to perform the mvn test command, I got this error.当我尝试执行 mvn test 命令时,出现此错误。 It compile works fine.它编译工作正常。 My code is running well I used to run this via Test-NG suite on Eclipse but getting error when trying to run this via maven on command prompt... Your assistance will be appreciable and thanks in advance.[Please find the screenshot link of the error below:-]我的代码运行良好我曾经通过 Eclipse 上的 Test-NG 套件运行此程序,但在命令提示符下尝试通过 maven 运行此程序时出错...您的帮助将不胜感激,并提前致谢。[请找到截图链接下面的错误:-]

Error_Screenshot Error_Screenshot

I have solved this error by adding the commons-io dependency in pom.xml:-`我通过在 pom.xml 中添加 commons-io 依赖项解决了这个错误:-`

<dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.6</version>
        </dependency>

` `

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 引起:org.apache.maven.surefire.booter.SurefireBooterForkException:分叉过程中出现错误[ERROR]无法实例化类 - Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process [ERROR] Cannot instantiate class 需要帮助,由:org.apache.maven.surefire.booter.SurefireBooterForkException:分叉过程中出现错误 - Need help, Caused By: org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process 获取异常“org.apache.maven.surefire.booter.SurefireBooterForkException: . 虚拟机崩溃或调用 System.exit?” - Getting an exception “org.apache.maven.surefire.booter.SurefireBooterForkException: . VM crash or System.exit called?” org / apache / commons / io / FileUtils-NoClassDefFoundError - org/apache/commons/io/FileUtils - NoClassDefFoundError 引起原因:java.lang.ClassNotFoundException:org.apache.commons.io.FileUtils,maven pom.xml wa - Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils, maven pom.xml wa org.apache.commons.io.FileUtils-更改文本编码 - org.apache.commons.io.FileUtils - change text encodig org.apache.commons.io.FileUtils.readFileToString 和文件路径中的空白 - org.apache.commons.io.FileUtils.readFileToString and blanks in filepath 如何在Servlet中改善org.apache.commons.io.FileUtils copyInputStreamToFile - How to improve org.apache.commons.io.FileUtils copyInputStreamToFile in Servlet 缺少方法 org.apache.commons.io.FileUtils.forceMkdirParent? - missing methode org.apache.commons.io.FileUtils.forceMkdirParent? 在 org.apache.commons.io.FileUtils.copyURLToFile 上设置超时? - Set timeout on org.apache.commons.io.FileUtils.copyURLToFile?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM