【问题标题】:Maven Plugin Error: Tests FailedMaven 插件错误:测试失败
【发布时间】:2013-03-29 20:29:15
【问题描述】:

我正在尝试使用 Maven(neo4j 的批量导入器)安装插件。使用

mvn clean compile assembly:single

给我一​​个无法创建目录的错误。我把它改成:

sudo mvn clean compile package assembly:single

它似乎可以工作,直到构建由于以下测试而失败:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.798s
[INFO] Finished at: Fri Mar 29 16:17:14 EDT 2013
[INFO] Final Memory: 22M/949M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project batch-import: There are test failures.
[ERROR]
[ERROR] Please refer to /u/omusayev/batch-import/batch-import/target/surefire-reports for the individual test results.
[ERROR] -> [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 information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

以前从未使用过 Maven,这很神秘。有谁知道这些可能意味着什么,以及如何解决这个问题?如果我可以提供更多信息,请询问。

谢谢。

【问题讨论】:

    标签: maven-3 neo4j maven-assembly-plugin batch-insert


    【解决方案1】:

    您忽略了实际的失败测试(在您粘贴的 sn-p 之上),但我猜这在无关紧要的测试中有些奇怪——试试这个:

    sudo mvn clean compile package assembly:single -Dmaven.test.skip=true
    

    【讨论】:

      猜你喜欢
      • 2013-06-21
      • 1970-01-01
      • 2017-05-21
      • 2020-09-21
      • 1970-01-01
      • 1970-01-01
      • 2013-09-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多