Maven插件错误:测试失败



我正在尝试使用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,这是相当神秘的。有人知道这些可能意味着什么吗?我该如何解决这个问题?如果我能提供更多的信息,请告诉我。

谢谢。

您省略了实际的失败测试(在您粘贴的代码片段上方),但我猜这是测试中的一些不重要的奇怪之处——试试这个:

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

相关内容

  • 没有找到相关文章

最新更新