最近来到一个新项目,我正在尝试编译我们的源代码。昨天一切正常,但今天是另一回事。
每次我mvn clean install在一个模块上运行时,一旦到达测试,它就会崩溃:
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ recorder ---
[INFO] Surefire report directory: /lhome/code/recorder/target/surefire-reports
[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
后来:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project recorder: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
我在Debian 9 (Stretch) 64 位和 OpenJDK 1.8.0_181、Maven 3.5.4 上运行,在我在~/.m2/settings.xml.
奇怪的是,如果我没记错的话,最新的 Surefire 版本是 2.22.1。我试图指定插件版本,但它没有更新,否则任何POM(父、祖父或这个)中都没有插件版本规范。
慕码人2483693
有只小跳蛙
慕莱坞森
相关分类