小编Mou*_*Mou的帖子

使用 mvn 测试错误 Maven

我是第一次使用这个工具,我无法正确构建项目。

当我尝试生命周期命令时,它通过干净的验证和编译成功构建。但是当我尝试 mvn test 时,它给了我这个错误:

[INFO] --------------------------------------------------------------------- 
---
[INFO] BUILD FAILURE
[INFO] --------------------------------------------------------------------- 
---
[INFO] Total time: 4.410 s
[INFO] Finished at: 2018-05-25T11:33:07+02:00
[INFO] --------------------------------------------------------------------- 
---
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire- 
plugin:2.20.1:test (default-test) on project gdp: Execution default-test of 
goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed. 
:NullPointerException
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more …
Run Code Online (Sandbox Code Playgroud)

build maven-plugin maven-3 maven

0
推荐指数
1
解决办法
4610
查看次数

标签 统计

build ×1

maven ×1

maven-3 ×1

maven-plugin ×1