SeekTool - 那是什么? [英] SeekTool - what can that be?

查看:47
本文介绍了SeekTool - 那是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Win10 上对 Java 项目进行 mvn test 时,我收到 2 个失败说明:

When doing a mvn test on a Java project on Win10 I get 2 failure notes:

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[ERROR] SeekTools:     Seek for the Project Tool Folder (give option '-h' for help)
[ERROR] ERROR: reached root of filesystem

... 测试运行顺利,但 Surefire 报告:

... test runs smoothly, but Surefire reports:

[INFO] Results:
[INFO] 
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[ERROR] There are test failures.

我在 Win10 上使用 Maven 3.6.3 和 Java 11.0.10.

I am using Maven 3.6.3 and Java 11.0.10 on Win10.

在 Debian-10 上对同一个项目执行相同操作时,我没有遇到此类错误.这里我使用的是 Maven 3.6.0 和 Java 11.0.9.

When doing the same to the same project on Debian-10, I get no such errors. Here I am using Maven 3.6.0 and Java 11.0.9.

我怀疑小版本差异导致失败.但我不知道如何开始解决它们.谷歌没有帮助.

I doubt that the small version difference causes the failures. But I got no clue how to start to solve them. Google did not help.

我正在应用插件

maven-compiler-plugin 3.8.1
maven-surefire-plugin 3.0.0-M5

你对我如何解决这个问题有什么提示吗?

Do you got any hint for me how to approach this problem?

完整的输出是这里.
pom.xml 是这里

推荐答案

@ngong<forkCount>0</forkCount><forkMode>never</forkMode> 不是修复.您正在使用 JDK11.我猜你没有使用 JPMS.我们在 Surefire 中有一个错误,您可以通过 false</useModulePath> 解决它.在这种情况下,将 forkCount 设置为零或将 forkMode 设置为 never 本质上是错误的想法,因为环境的任何变化都可能影响您在任何机器上的测试.请参阅https://stackoverflow.com/a/65806777/2758738

@ngong <forkCount>0</forkCount> and <forkMode>never</forkMode> is not a fix. You are using JDK11. I guess you do not use JPMS. We have a bug in Surefire and you can workaround it by <useModulePath>false</useModulePath>. Setting forkCount to zero or forkMode to never is inherently wrong idea in this case because any changes in the environment may affect your tests on any machine. Please see https://stackoverflow.com/a/65806777/2758738

这篇关于SeekTool - 那是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆